/Movie-API

Primary LanguageJavaScript

Movie-API

Description

In this application, we built Rest API routes for creating, retrieving, and deleting movies from a MySQL database.

Table of Contents

Installation

  • 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

Routes implemented

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

Built With

Author

David Chou

Iman Mansour