ConcertTraveller is a web API that lets a user:
- add a movie by the title and connect to the external API http://www.omdbapi.com/ in order to get additional information
- get the list of all the movies existing in the database
- add a comment to a particular movie
- get the list of all comments existing in the database
Used technologies:
- Node.js - backend of the app, using Express.js framework
- Jest - testing framework
- Make sure you have Node.js@8.9.1 and MongoDB@3.6.5 installed to ensure that the app works well
- Copy the repository
In the terminal:
- Run
npm install
in the main directory - Run
npm start
Go to http://localhost:4000 in your favourite browser to use the app.
GET /api/movies
: https://moovieguru.herokuapp.com/api/movies
POST /api/movies
: https://moovieguru.herokuapp.com/api/movies
: Content-Type: application/json
Data params: {"title": "title of the movie"}
GET /api/comments
: https://moovieguru.herokuapp.com/api/comments
POST /api/comments
: https://moovieguru.herokuapp.com/api/comments
: Content-Type: application/json
Data params: {"movieId": "id of the movie", "comment": "comment to the movie" }