Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mrbrunelli/node-mongodb-crud

My studies of Node.js with MongoDB
https://github.com/mrbrunelli/node-mongodb-crud

express mongodb mongoose node

Last synced: about 1 month ago
JSON representation

My studies of Node.js with MongoDB

Awesome Lists containing this project

README

        

# Node MongoDB CRUD
> Capivara's JSON CRUD with Node.js + MongoDB Stack

## Instructions to run
```javascript
// .env
URI=url-to-your-atlas-mongo-db-cluster
DB_NAME=name-of-your-schema
```
```shell
npm install && npm start
```

## Endpoints
```javascript
// GET index
/capivara

// GET show
/capivara/:id

// POST create w/body
/capivara
{
"nome": string,
"pelagem": string,
"nativa": boolean
}

// PUT update w/body
/capivara/:id
{
"nome": string,
"pelagem": string,
"nativa": boolean
}

// DELETE delete
/capivara/:id
```