Skip to content

Latest commit

 

History

History
43 lines (29 loc) · 645 Bytes

README.md

File metadata and controls

43 lines (29 loc) · 645 Bytes

Bookstore API

Local development

Make sure you have python (3) installed, then setup up a virtual environment:

$ python -m venv env

Activate the virtual environment:

$ . env/bin/activate

Install the dependencies with pip:

$ pip install -r requirements.txt

Run the app

You can run the app either via the wsgi.py as Flask app, or set the create_app config yourself.

With wsgi.py:

$ export APP_ENV=Dev
$ export FLASK_APP=wsgi.py
$ export FLASK_ENV=Development
$ flask run

or, directly:

$ export FLASK_APP='app:create_app("app.config.Dev")'
$ flask run