/flask-book

Primary LanguagePythonMIT LicenseMIT

flask-book

A minimal social wep-app using Python / Flask and SQlite / SQLAlchemy.

Steps to get you running

  1. Run appropriate script (_setup_venv.ps1 or _setup_venv.sh) to setup your virtual environment.
  2. Set the python.pythonPath option accordingly.
  3. Run flask init-db to initialize the database.
  4. Run flask add-data to add some test data.
  5. Run flask run to start the server

Run this to initialize the DB through migrations

  1. flask db init
  2. flask db migrate -m "Initial migration"
  3. flask db upgrade