API NODE REST
Uma API utilizando Node, Express e MongoDB realizando as requisição Get, Post, Delete e Put para realizar CRUD completo. Com o objetivo de grava uma frase e o seu autor.
API using Node, Express and MongoDB performing the Get, Post, Delete and Put requests to perform complete CRUD. In order to record a sentence and its author.
- Node
- Express
- MongoDB
Clone Project
git clone git@github.com:msvasconcelos/api-node.git
Create account https://www.mongodb.com/cloud and configure the .env file with the bank connections
cd api-node
npm install
npm run dev
Get: localhost:3000/mentions
Post: localhost:3000/mentions
{
"friend": "Lorem ipsum",
"mention": "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
}
Put: localhost:3000/mentions/{id:}
{
"mention": "This is a new mention added via PUT"
}
Delete: localhost:3000/mentions/{id:}
- 0.0.1
- Work in progress
Distributed under the MIT license. See LICENSE for more information.
- Fork it (https://github.com/msvasconcelos/api-node/fork)
- Create your feature branch (
git checkout -b feature/) - Commit your changes (
git commit -am 'Add something') - Push to the branch (
git push origin feature/) - Create a new Pull Request
Develop by Matheus Vasconcelos
