Helpeo é um projeto que foi baseado no Ecoleta da rocketseat!
yarn
Ou
npm install
// Ou use
npm i
/* YARN */
// Criar banco de dados
yarn knex:migrate
// Adicionar Dados Default
yarn knex:seed
/* NPM */
npm run knex:migrate
npm run knex:seed
yarn dev
// ou
npm run dev
Route | Method | Params | Description |
---|---|---|---|
/signup |
Post | name email password in body params |
Create a new user |
/signin |
Post | email password in body params |
Login |
Route | Method | Params | Description |
---|---|---|---|
/items |
Get | No params | Get all itens for charity donation |
Route | Method | Params | Headers | Description |
---|---|---|---|---|
/user/authenticated |
Get | No params | Authorization | Check authenticated user in web for access Private Router |
/user |
Get | No params | Authorization | Get user data |
/user/points |
Post | Params | Authorization | Create a new point for charity donation |
/user/points |
Get | No params | Authorization | List all user points |
/user/point/:id |
Put | Params and point id in params | Authorization | Update user point |
/user/point/:id |
Delete | point id in params | Authorization | Delete user point |
title,
whatsapp,
latitude,
longitude,
city,
uf,
address,
neighborhood,
numbering,
items
Crie uma branch com a sua feature:
git checkout -b my-feature
Commit suas mudanças:
git commit -m feat: My new feature
Push a sua branch:
git push origin my-feature