Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/laststonedjs/rest-api

Node.js REST API backend application with configured cloud MongoDB, Express,js, Mongoose and a lot of other things. CRUD operations and their implementation are the essence of this project, as well as the creation of models, controllers and routes in order to display, change and delete our data from the database.
https://github.com/laststonedjs/rest-api

cors crud expressjs mongodb mongoose nodejs nodemon rest-api

Last synced: 9 days ago
JSON representation

Node.js REST API backend application with configured cloud MongoDB, Express,js, Mongoose and a lot of other things. CRUD operations and their implementation are the essence of this project, as well as the creation of models, controllers and routes in order to display, change and delete our data from the database.

Awesome Lists containing this project

README

        

# Create a REST API with Node.js and MongoDB

## Instructions
After cloning into repo, cd to project root directory and install dependencies:

```
$ npm install
```

To run server:

```
$ npm start
```

After that should get response message in the console where are our "Server is successfully running..", something like:

```
[nodemon] restarting due to changes...
[nodemon] starting `node app.js`
Server is running on port 4000
```

## Overview
```js
A solid REST API is the foundation of virtually every modern web app, service and data-driven company/startup.
From large multi-national corporation to small startup, the core tenets of a well-designed REST API are the same
and can be learned in relatively short period of time. In this case, I construct a simple REST API
using Node/Express, MongoDB. Along the way, we explore the key principles behind REST API design as well as common
mistakes and scenarios that developers often struggle with.
```