- Node.js - Download and Install Node.js
- MySQL - Download and Install MySQL
- Postman - Download and Install Postman
$ git clone git@github.com:fikribasa/rentaldvd.git
$ cd rentaldvd
$ npm install
$ cp .env.example .env
$ nano .env
SERVER_PORT = YOUR-PORT
DB_HOST = "YOU-DB-HOST"
DB_USER = "YOUR-DB-USER"
DB_PASSWORD = "YOUR-DB-PASSWORD"
DB_NAME = "YOUR-DB-NAME"
$ npm start
-
"/movies" => display all movies Data
-
"/movies/id/{moviesID}" => display one movies data with the id specified by ID parameter.
-
"/movies/title/{moviesTitle}" => display one movies data with the title specified by title parameter.
-
"/movies/genre/" => display movies data specified by type parameter genre.
-
"/movies/country" => display movies data specified by type parameter country.
-
"/movies/page/{page}" => display all movies data with contain 4 movies data for each page.
- "/movies" => Inserting a new movies data to database. Data required = title,genre,and country.
- "/movies/{moviesID}" => Updating a existing movies data in database. Data required = moviesID and parameter that needs to update.
- "/movies/{moviesID}" => Deleting a existing movies data in database. Data required = moviesID.