In this application, we built Rest API routes for creating, retrieving, and deleting movies from a MySQL database.
-
Go to the app's repo in github and clone the app
-
From terminal: navigate to app's directoty and run:
$ npm install
-
From terminal: navigate to app's directoty, cd in db folder and run:
source schema.sql source seeds.sql
-
To start the server from terminal, run:
$ npm run
GET /api/movies
- Returns the movies from movies table
POST /api/add-movie
- Adds a new movie
Put /api/update-review
- Updates a review
Delete /api/movie/:id
- Deletes a movie
David Chou
Iman Mansour