An API of US presidents built with Python, PostgreSQL, Peewee, and Flask.
Clone this repository
Install dependencies
Open psql in terminal
Create database named 'presidents'
Install dependencies
Run schema.sql, then seed.sql with Python3
Run app.py in the virtual environment
Use Postman to check routes
While app.py is running, python3 cli-game.py to play trivia or add/delete through the command line
Local home route: http://127.0.0.1:9000
GET and POST: /presidents
GET, PUT, and DELETE: /presidents/:id