- Start the application
npm start
- Start nodemon for the application
npm run dev
- Run the tests in watch mode
npm test
- Migrate the database at
DATABASE_URL
, withnpm run migrate:test
- Migrate the tests (at
TEST_DATABASE_URL
), withnpm run migrate:test
Remember to create a .env file with DATABASE_URL
and TEST_DATABASE_URL
.
When your new project is ready for deployment, add a new Heroku application with heroku create
. This will make a new git remote called "heroku" and you can then npm run deploy
which will push to this remote's master branch.