/movie

A fullstack app with crud and search functionality for movies and reviews.

Primary LanguageJavaScript

TO RUN BACKEND LOCALLY:

  • After cloning the app, make sure to install all the packages (refer to the package.json file). Make sure you install the packages IN THE BACKEND FOLDER ONLY.

  • Create an account on Mongodb and make a new project.

  • Use the Mongodb connection uri in the code that you cloned. Make sure to note down the username and password while setting up the project as it will be needed for the uri.

  • run npm start in the backend directory to start the server.

  • open another console and to test the server, run:

    Invoke-WebRequest -Uri "http://localhost:port_number/api/v1/reviews/new" -Method POST -Headers @{"Content-Type"="application/json"} -Body '{"movieId": 12, "user": "beau", "review": "good"}'

    or any other HTTP method using cURL or other methods.