Skip to content

mirchenko/tdd-node-jest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Source code for Node.js TDD complete guide

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published