Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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)