My source code after taking the Lynda.com course: Building RESTful APIs with Flask
- Clone this repo and
cd
into it touch planets.sqlite
python3 -m pip install --user virtualenv
python3 -m venv env
source env/bin/activate
export FLASK_DEBUG=1 && export FLASK_APP=app.py
pip install -r requirements.txt
flask run
Control + C will stop the web server.
flask db_create
flask db_seed
will seed the database
When you are done with the virtualenv, use: deactivate
.
pip freeze > requirements.txt