The We Love Movies server is a backend API built with RESTful architecture to handle HTTP requests from the frontend client application, which was designed by Thinkful. The server allows a user to look up movies, theaters, and reviews from the client app. It also allows an admin to update and delete reviews.
Server deployed to Render (use the /movies
, /theaters
, or /reviews
routes listed below)
Client App designed by Thinkful
- JavaScript, Node.js, Express, PostgreSQL, Knex
- Fork and clone this repository.
- Run
npm install
to install project dependencies. - Run
npm start
to start the server locally.
- Go to Thinkful's starter code on GitHub.
- Fork and clone the repository.
- Run
npm install
to install project dependencies. - Run `npm start' to start the client app locally.
The API allows for the following routes:
Method | Route | Description |
---|---|---|
GET |
/movies |
Lists all movies. |
GET |
/movies/:movieId |
Reads a specific movie by movie_id . |
GET |
/movies/:movieId/theaters |
Lists all theaters that are playing a specific movie. |
GET |
/movies/:movieId/reviews |
Lists all reviews for a specific movie. |
GET |
/theaters |
Lists all theaters. |
GET |
/reviews |
Lists all reviews. |
PUT |
/reviews/:reviewId |
Updates a specific review by review_id . |
DELETE |
/reviews/:reviewId |
Deletes a specific review by review_id . |
Route | Get | Put | Delete |
---|---|---|---|
/movies |
✅ | ❌ | ❌ |
/movies/:movieId |
✅ | ❌ | ❌ |
/movies/:movieId/theaters |
✅ | ❌ | ❌ |
/movies/:movieId/reviews |
✅ | ❌ | ❌ |
/theaters |
✅ | ❌ | ❌ |
/reviews |
✅ | ❌ | ❌ |
/reviews/:reviewId |
❌ | ✅ | ✅ |