/tdd-node-jest

Source code for Node.js TDD complete guide

Primary LanguageJavaScript

TDD Node, Postgres, Jest

Pre requirements

Libraries docs

Setting up db

$ psql

CREATE DATABASE blog;

CREATE DATABASE blog_test;

\q

Edit your connection string in knexfile.js, set up your postgres credentials. postgres://<PG_USERNAME>:<PG_PASSWORD>@localhost:5432/blog

Getting started

$ git clone https://github.com/mirchenko/tdd-node-jest.git <YOUR_FOLDER_NAME>
$ cd <YOUR_FOLDER_NAME>
$ yarn 
$ knex migrate:latest
$ knex seed:run
$ yarn start

Service available on localhost:8080