Go to the directory where you want to create your project and run:
pip install cookiecutter
cookiecutter https://github.com/khanh41/fastapi-mongodb-base-project
You will be asked to provide passwords and secret keys for several components. Open another terminal and run:
openssl rand -hex 32
# Outputs something like: 99d3b1f01aa639e4a76f4fc281fc834747a543720ba4c8a8648ba755aef9be7f
Copy the contents and use that as password / secret key. And run that again to generate another secure key.
The generator (cookiecutter) will ask you for some data, you might want to have at hand before generating the project.
The input variables, with their default values (some auto generated) are:
project_name
: The name of the projectproject_slug
: The development friendly name of the project. By default, based on the project namehost
: IP host runningport
: Port runningsuper_username
: The first superuser generated, with it you will be able to create more users, etc. By default, based on the domain.super_password
: First superuser password. Use the method above to generate it.
This project is licensed under the terms of the MIT license.