Getting my feet wet with the following in a Flask application:
- API JSON responses
- SQLite3 DB
To run this:
- Run the database creation script
python db_creation.py
- Substitute your own username and password for auth in your own separate config_vars.py file
#config_vars.py
DATABASE="tasks.db"
test_username="<your own username>"
test_password="<your own password>"
- Run the flask app (note that the DB has two test entries in it)
python simpleAPI.py
-
Use Row_Factory magic for SQLite3 DB connections
-
Create POST/PUT methods