Skip to content

Diegoomal/PythonFlaskPlatformSetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github AI Models

'.env' file

SECRET_KEY="super-secret-key"
SQLALCHEMY_DATABASE_URI="sqlite:///db.sqlite"

Manage Conda ENV

Create

conda env create -n python-platform-setup-env -f ./env.yml

Update

conda env update -n python-platform-setup-env -f ./env.yml

Remove

conda env remove --n python-platform-setup-env

List

conda env list

Activate

conda activate python-platform-setup-env

To Execute

Config the DB

flask db init
flask db migrate -m "initial migration"
flask db upgrade
flask db downgrade

Run Flask server

flask run

Run uvicorn server (prod)

uvicorn src.main:asgi_app --host 0.0.0.0 --port 8000 --workers 4 --reload

Links

github_author

generate-token freecodecamp-tutorial digitalocean-migration-tutorial

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published