Testing Node and Express

Want to learn how to build this project?

Check out the blog post.

set connection

knexfile.js connection: 'postgres://user:1234@localhost:5432/express_tdd',

Want to use this project?

  1. Fork/Clone
  2. Install dependencies - npm install
  3. Add a .env file
  4. Create two local Postgres databases - express_tdd and express_tdd_testing
  5. Migrate - knex migrate:latest --env development
  6. Seed - knex seed:run --env development
  7. Run the development server - gulp
  8. Test - npm test