Skip to content

ytimocin/flask-postgres-server

Repository files navigation

  1. pip install flask-restful
  2. pip freeze > requirements.txt
  3. python main.py

Adding gunicorn and nginx

  1. asdas

sqlAlchemy

  1. pip install flask_sqlalchemy

app/init.py

  1. export FLASK_APP=app
  2. export FLASK_ENV=development
  3. flask run

will add gunicorn later

flask-alembic

  1. flask db init => creates the migrations folder
  2. flask db revision -m "create account table" => creates a new version
  3. flask db upgrade => runs the migrations

docker-compose

  1. docker-compose up --build --remove-orphans

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published