An open API service indexing awesome lists of open source software.

https://github.com/edgar-code-repository/node-express-movies-rest-api

Rest API developed with Node, Express and PostgreSQL.
https://github.com/edgar-code-repository/node-express-movies-rest-api

Last synced: over 1 year ago
JSON representation

Rest API developed with Node, Express and PostgreSQL.

Awesome Lists containing this project

README

          

MOVIES REST API
------------------------------------------------------------------------------------------------------------

Rest API developed with Node and Express.

Libraries node-postgres and knex are used to connect and store data in a PostgreSQL database.

This app contains endpoints that allows to store data about movies and genres.

------------------------------------------------------------------------------------------------------------

Dependencies used by the app:

```

"dependencies": {
"cors": "^2.8.5",
"dotenv": "^8.1.0",
"express": "^4.17.1",
"knex": "^0.19.5",
"pg": "^7.12.1"
},
"devDependencies": {
"nodemon": "^1.19.2"
}

```

------------------------------------------------------------------------------------------------------------

**Call to retrieve genres from Postman:**

![Screenshot Genres](screenshots/postman-node-rest-genres.png)

------------------------------------------------------------------------------------------------------------

**Get call to retrive movies by genre from Postman:**

![Screenshot MoviesByGenre](screenshots/postman-node-movies-pagination.png)

------------------------------------------------------------------------------------------------------------

**Get call to retrieve a movie by id from Postman:**

![Screenshot MovieById](screenshots/postman-node-movie-by-id.png)

------------------------------------------------------------------------------------------------------------

**Post call to store a movie from Postman:**

![Screenshot PostMovie](screenshots/postman-node-movies-post.png)

------------------------------------------------------------------------------------------------------------