- JWT
- OTP Login & Password Reset
- Emailing
- SQLAlchemy
- RBAC
- Login History
- CORS
- Modularity
- Admin API (WIP)
MIT licensed.
pip3 install cookiecutter
cookiecutter https://github.com/pratik-shivarkar/fastapi-cookiecutter.git
Project name should not use special characters except _ (underscore)
cd {project_name}
pip install .
Once installed the project_name
command will be available
PYTHONUNBUFFERED
set to 1 when using DockerAUTH_MODE
set value tonative
orapi-gateway
AUTH_HEADER
set value to authenticated user header when usingapi-gateway
based authenticationMASTER_DB_URI
URI for postgres master database and master user (will be used for creating project role and database)DB_URI
URI for project database, role, and passwordDB_PASSWORD
password for project databaseSECRET_KEY
secret key for JWTREFRESH_KEY
secret key for JWT refresh tokensSMTP_SERVER
SMTP server hostSMTP_PORT
SMTP server portSMTP_USERNAME
SMTP server usernameSMTP_PASSWORD
SMTP server passwordSENDER_EMAIL
SMTP sender emailORIGINS
Comma separated origins to allow (eg. https://example.com,http://localhost:8080)
Usage: project_name [OPTIONS] COMMAND [ARGS]...
Options:
--production / --no-production
--help Show this message and exit.
Commands:
clean
init
run
test
project_name init
project_name clean
project_name run
project_name test