Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 881 Bytes

README.md

File metadata and controls

47 lines (40 loc) · 881 Bytes

Flask Blog App

Setup

Virtual Environment

  • Install a virtualenv if not already installed
python3 -m pip install --user virtualenv
  • Create a virtual environment
virtualenv env
  • Activate environment
source env/bin/activate

Install requirements

pip install -r requirements.txt

Flask Environment variables

export FLASK_APP=app
export FLASK_ENV=development

DATABASE

  • Run the following command to initialize the database
python init_db.py

Run the server

  • The following command will run development server on http://127.0.0.1:5000
flask run

Usage