/express-testing-mocha-knex

testing an express app

Primary LanguageJavaScriptMIT LicenseMIT

Testing Node and Express

Want to learn how to build this project?

Check out the blog post.

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