Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/artodeschini/todo-tdd-sample
Simple sample to create a rest api with tdd use express and jest
https://github.com/artodeschini/todo-tdd-sample
express jest mongodb mongosee nodejs rest-api tdd
Last synced: 23 days ago
JSON representation
Simple sample to create a rest api with tdd use express and jest
- Host: GitHub
- URL: https://github.com/artodeschini/todo-tdd-sample
- Owner: artodeschini
- Created: 2024-10-12T02:55:38.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-10-18T01:44:20.000Z (30 days ago)
- Last Synced: 2024-10-20T13:29:03.121Z (27 days ago)
- Topics: express, jest, mongodb, mongosee, nodejs, rest-api, tdd
- Language: JavaScript
- Homepage:
- Size: 66.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Todo TDD
Um simples projeto utilizando node express e jest.
Utilizando TDD a ideia é criar primeiros os testes, depois criar a funcionalidade, depois criar o teste de integracao da mesma## unit test
[unit test](./test/unit/todo.controller.test.js)
## integration tests
[integration](./test/integration/todo.controller.int.test.js)
## requirements
* node
* jest
* express
* mongodb
* monngose## utilização
Para executar como app
```bash
npm start# or
node server.js
```## para executar os testes
```bash
npm test
```## Adicione a collection do postman
[postman](./postman-collection/TODO.postman_collection.json)
## test se a app está up
```bash
npm start
```[check](http://localhost:8080)