Check out the blog post.
knexfile.js connection: 'postgres://user:1234@localhost:5432/express_tdd',
- Fork/Clone
- Install dependencies -
npm install
- Add a .env file
- Create two local Postgres databases -
express_tdd
andexpress_tdd_testing
- Migrate -
knex migrate:latest --env development
- Seed -
knex seed:run --env development
- Run the development server -
gulp
- Test -
npm test