full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Omit secrets from the created repository

Open shippy opened this issue 1 year ago • 0 comments

Fixes #724 by following means:

  • Adding .env to the .gitignore shared between the template and the generated project,
  • Moving current .env to .env.jinja and templating it accordingly, so that after generation, it's (a) full of secrets and (b) git-ignored,
  • Marking password questions secret: true and thereby removing them from .copier-answers.yml,
  • Removing the need for .copier/update_dotenv.py.

Additionally, it leverages some other features of copier, such as validator: for prompts that have string requirements (in this case, no spaces) and a default based on upstream responses to improve user experience.

shippy avatar Mar 17 '24 12:03 shippy