lethanhha / simple_restful_api_nodejs

Simple RESTful API with NodeJS, Express, Mongoose, MongoDB (Movie List)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple RESTful API with NodeJS, Express, Mongoose, MongoDB (Movie List)

This is a repo I make to learn how to design RESTful API with NodeJS, Express, Mongoose and MongoDB.

StandardJS ES6 NodeJS Npm Express MongoDB

Usage

Installation

Requirements: Node, NPM, MongoDB

Sync package.json:

npm install

Import data:

npm run import-data

Start server

npm start

API

GET /api/v1/movies/ (Get all movies)

POST /api/v1/movies/ (Add new movie)

GET /api/v1/movies/{id} (Get one movie)

PATCH /api/v1/movies/{id} (Update one movie)

DELETE /api/v1/movies/{id} (Delete one movie)

About

Simple RESTful API with NodeJS, Express, Mongoose, MongoDB (Movie List)

License:MIT License


Languages

Language:JavaScript 100.0%