An open API service indexing awesome lists of open source software.

https://github.com/luizrebelatto/challenge-01-node-js-concepts

Aplicação para Gerenciamento de Tarefas
https://github.com/luizrebelatto/challenge-01-node-js-concepts

backend nodejs

Last synced: 3 months ago
JSON representation

Aplicação para Gerenciamento de Tarefas

Awesome Lists containing this project

README

          

To Do


Projeto   |   
Tecnologias   |   
Bibliotecas   |   
Funcionalidades   |   
Rotas   |   
Como Executar   


## 💻 Projeto

Aplicação para Gerenciamento de Tarefas

## ✨ Tecnologias
- Node
- JavaScript
- Insomnia
- express
- nodemon

## 📚 Bibliotecas
- uuid
- supertest
- cors
- jest

## 💻 Funcionalidades
- Criar Usuário
- Cadastrar Tarefas
- Mostrar Tarefas
- Atualizar titulo e prazo da tarefa
- Alterar estado da tarefa
- Deletar tarefa

## ✔️ Requisitos

- [x] checksExistsUserAccount
- [x] checksExistsTodos

## 💻 Testes
- [x] Users should be able to create a new user
- [x] Users should not be able to create a new user when username already exists
- [x] Todos should be able to list all user's todo
- [x] Todos should be able to create a new todo
- [x] Todos should be able to update a todo
- [x] Todos should not be able to update a non existing todo
- [x] Todos should be able to mark a todo as done
- [x] Todos should not be able to mark a non existing todo as done
- [x] Todos should not be able to delete a non existing todo
- [x] Todos should be able to delete a todo

## 📱 Rotas

- POST → /users
- POST → /todos
- GET → /todos
- PUT → /todos/:id
- PATCH → /todos/:id/done
- DELETE → /todos/:id

## 🚀 Como executar

1) Clonar o projeto do github:
`git clone https://github.com/Luizrebelatto/challenge-01-node-js-concepts.git`

2) Abrir terminal(CMD/TERMINAL ou VSCode/CMD) e acessar a pasta raiz do projeto (pelo terminal).

3) Instalar Dependências:
execute `yarn`

4) Rodar Aplicação no http://localhost:3333:
`yarn dev`

5) Rodar testes:
`yarn test`

---

Desenvolvido por👋🏻:
- [Luiz Gabriel Rebelatto](https://www.linkedin.com/in/luiz-gabriel-rebelatto-bianchi-67097413b/)