$ pip install -r requirements.txt
Set your database URI and jwt secret key
# .env
# Host Config
HOST='0.0.0.0'
PORT=80
ENV='production'
DEBUG=False
# Database Config
SQLALCHEMY_DATABASE_URI_DEV='mysql://username:password@address/database_name'
SQLALCHEMY_TRACK_MODIFICATIONS=False
# Auth Config
JWT_SECRET_KEY='some_jwt_secret_key'
# Routes Config
ROUTE_ADMIN_REGISTRATION=True
Send new admin to <your_url>/api/auth/register
{
"username": "<username>",
"password": "<password>",
"email": "<email>"
}
# .env
...
ROUTE_ADMIN_REGISTRATION=False