/api-nodejs-com-tdd-e-jest

Testando framework JEST e usando TDD

Primary LanguageJavaScript

api-nodejs-com-tdd-e-jest

Testando framework JEST usando TDD

Instale as dependĂȘncias

$ npm install

Instale o postgresql

$ brew install postgresql postgresql-contrib

ou

$ sudo apt-get install postgresql postgresql-contrib

ou use o Docker

$ docker-compose up -d

Start o projeto

$ npm start

Abra no browser GET: http://localhost:3000/posts

Rode os testes

$ npm test