$ pip install -r requirements.txt
Set your database URI and jwt secret key
# .env
SQLALCHEMY_DATABASE_URI_DEV='mysql://username:password@address/database_name'
SQLALCHEMY_TRACK_MODIFICATIONS=False
JWT_SECRET_KEY='some_jwt_secret_key'
JSON_SORT_KEYS=False
ROUTE_ADMIN_REGISTRATION=True
Send new admin to <your_url>/api/auth/register
{
"username": "<username>",
"password": "<password>",
"email": "<email>"
}
# .env
...
ROUTE_ADMIN_REGISTRATION=False