Manage comments for your community easily
*This project was built as a community idea in the GoStack Bootcamp by rocketseat.com.br
Create your own .env file based on the .env.example
As any API REST, you will need a client to make use of this task manager.
POST: localhost:3000/users
body: { "name": "Jhon", "email": "jhon.doe@example.org", "password": "unhackablepassword" }
POST: localhost:3000/sessions
body: { "email": "jhon.doe@example.org", "password": "unhackablepassword" }
For every other route you will need to login and send the authentication token within the Authentication header:
Authentication: Bearer {token}
GET: localhost:3000/feed?page=1
GET: localhost:3000/comments
POST: localhost:3000/comments
body: { "content": "I have something to say !"}
PUT: localhost:3000/comments/:id
body: { "content": "Oops I did it again"}
DELETE: localhost:3000/comments/:id
POST: localhost:3000/votes
body: { "comment_id": 1}
POST: localhost:3000/users
body: { "password": "87654321", "confirmPassword": "87654321","oldPassword": "12345678" }
yarn
yarn dev
Miguel Alemán