Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/siopipin/restapicrud

Aplikasi restapi untuk operasi CRUD | Menggunakan Nodejs, Express, Mongoose, dan Docker
https://github.com/siopipin/restapicrud

docker express javascript mongoose nodejs

Last synced: 21 days ago
JSON representation

Aplikasi restapi untuk operasi CRUD | Menggunakan Nodejs, Express, Mongoose, dan Docker

Awesome Lists containing this project

README

        

# nodejs-restful-api
![RESTful API design with Node.js](https://cdn-images-1.medium.com/max/2000/1*jjYC9tuf4C3HkHCP5PcKTA.jpeg "RESTful API design with Node.js")

How to create a RESTful CRUD API using Nodejs?

This tutorial will demo how to set up a bare bones
API using mongodb as the database.

It consist of a User model and controller. The model
defines the data, and the controller will contain all
the business logic needed to interact with the database.

It has a db file which will be used to
connect the app to the database, and an app file used
for bootstrapping the application itself.

The server file is used to spin up the server and tells the
app to listen on a specific port.