full-stack-fastapi-template
full-stack-fastapi-template copied to clipboard
Omit secrets from the created repository
Fixes #724 by following means:
- Adding
.envto the.gitignoreshared between the template and the generated project, - Moving current
.envto.env.jinjaand templating it accordingly, so that after generation, it's (a) full of secrets and (b) git-ignored, - Marking password questions
secret: trueand 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.