Jack Roybal
https://github.com/ExcuseMeImJack/watchboxd.git
pipenv install -r requirements.txt
cd react-app
npm install
pipenv run flask db migrate
pipenv run flask db upgrade
pipenv run flask seed all
pipenv run flask run
npm start
GET /api/films
{'films': [{'id': 1, 'title': 'Jurassic Park', . . . }, {'id': 1, . . . }]}
GET /api/films/{film_id}
{'id': 1, 'title': 'Jurassic Park', . . . }
POST /api/films
{'id': 1, 'title': 'Jurassic Park', . . . }
PUT /api/films/{film_id}
{'id': 1, 'title': 'Jurassic Park', . . . }
PUT /api/films/{film_id}
DELETE /api/films/{film_id}
{'message': 'Successfully deleted!'}
GET /api/lists
{'lists': [{'id': 1, 'list_name': 'My List', . . . }, {'id': 2, 'list_name': 'My List', . . . }]}
GET /api/lists/{list_id}
{'id': 1, 'list_name': 'My List', . . . }
POST /api/lists
{'id': 1, 'list_name': 'My List', . . . }
PUT /api/lists/{list_id}
{'id': 1, 'list_name': 'My List', . . . }
DELETE /api/lists/{list_id}
{'message': 'Successfully deleted!'}
POST /api/likes/{film_id}
'message': 'Film liked'
DELETE /api/likes/{film_id}
{'message': 'Film unliked'}
POST /api/watched/{film_id}
'message': 'Film watched'
DELETE /api/watched/{film_id}
{'message': 'Film unwatched'}
POST /api/watchlist/{film_id}
{'message': 'Film added to watchlist'}
DELETE /api/watchlist/{film_id}
{'message': 'Film removed from watchlist'}
GET /api/users
{'users': [{'id': 1, 'first_name': 'Tester', . . .}, {'id': 2, 'first_name': 'Tester', . . .}]}
GET /api/users/{user_id}
{'id': 1, 'first_name': 'Tester', . . .}
POST /api/auth/signup
{'id': 1, 'first_name': 'Tester', . . .}
PUT /api/users
{'id': 1, 'first_name': 'Tester', . . .}
DELETE /api/users
{'message': 'Successfully deleted!'}