Skip to content

Latest commit

 

History

History
65 lines (51 loc) · 1.23 KB

README.md

File metadata and controls

65 lines (51 loc) · 1.23 KB

Todo API

An API for creating, updating, retrieving and deleting todo tasks.

How to install

  • create a virtualenv and activate it
  • install required modules
  • set environment variables
  • create and migrate database
  • run application

Create a virtualenv and Activate it

Assuming windows:

virtualenv venv
cd venv/scripts
activate

Install required modules

pip install -r requirements.txt

set environment variables

Assuming windows:

set FLASK_ENV=development
set FLASK_APP=todo:factory

Create and migrate database

flask db init
flask db migrate
flask db upgrade

Run application

flask run

The development server is run at localhost:5000

Documentation