Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/mrbrunelli/node-mongodb-crud
- Owner: mrbrunelli
- Created: 2021-01-13T22:46:05.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-14T11:56:45.000Z (about 4 years ago)
- Last Synced: 2024-11-15T09:50:26.034Z (3 months ago)
- Topics: express, mongodb, mongoose, node
- Language: JavaScript
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```