In the project directory, you may run:
To install all dependencies.
The migration and create sqlite file.
The app in the development mode.
Open http://localhost:3333 to view it in your browser.
URL | Method | Info |
---|---|---|
/api/users | POST | Create an user. |
/api/users | GET | Show all users. |
/api/users/:id | GET | Show user by id. |
/api/users/:id | DELETE | Delete user by id. |
/api/users/:id | PATCH | Update user by id. |
- Create routes for delete and update user.
- Create router for lessons.
- Make it 100% functional.
No diretorio do projeto você pode:
Para instalar as dependencias execute:
Para a migração e criação do SQLite execute:
E por ultimo você pode ligar a Api por meio do comando:
Abra http://localhost:3333 no seu navegador para visualizar a API.
URL | Method | Info |
---|---|---|
/api/users | POST | Cria um usuario. |
/api/users | GET | Mostra os usuarios. |
/api/users/:id | GET | Mostra um usuario pelo id. |
/api/users/:id | DELETE | Deleta um usuario pelo id. |
/api/users/:id | PATCH | Atualiza um usuario pelo id. |
- Criar rotas para excluir e atualizar o usuário.
- Criar rota para aulas.
- Deixar 100% funcional.