Deploy Node Express App to Heroku using Travis Continuous Integration
by John Vincent
Posted on April 5, 2017
Configure Github, Travis and Heroku so that a change to a github repository triggers a Travis CI build which executes Mocha/Chai Unit Tests and if successful, deploys to Heroku
Configure Github, Travis and Heroku so that a change to a Github repository triggers a Travis CI build which executes Mocha/Chai Unit Tests and if successful, deploys to Heroku.
Tasks
See Thinkful course for details.
Final Result
Development
cd MyDevelopment/github/thinkful
git clone https://github.com/Thinkful-Ed/node-shopping-list-integration-tests.git
cd node-shopping-list-integration-tests
created new repository on Github:
node-shopping-list-integration-tests
change to new remote:
git remote set-url origin https://github.com/johnvincentio/node-shopping-list-integration-tests
Push the master branch up to your new repository on GitHub:
git push -u origin master
Install dependencies:
npm install
To run the tests:
npm test
Travis CI
For details, see Continuous Integration with Travis CI
Continuous Integration
Express
Heroku
- Add Integration testing to Blogging App
- Add Mongoose to blogging app
- Continuous Integration with Travis CI
- Create SpringBoot App and Deploy to Heroku
- Deploy Node Express App to Heroku using Travis Continuous Integration
- Deploy React App to Heroku using Travis Continuous Integration
- Deploy Static Website to Heroku
- Heroku Notes
- Integrating Mongoose into an Express app
- Integration testing in a Mongoose world
- Tests and CI for Blogging App
Node
- Add Mongoose to blogging app
- Basic Express Server
- Basic Node
- Basic React Redux App
- Basic Redis
- Deploy Node Express App to Heroku using Travis Continuous Integration
- Install Node 8.10 on MacOS
- Json Web Tokens
- Mocha Chai Notes
- Node Basic authentication and access control
- Node Environment
- Overview of Deployment of a Node API Server
- React/Redux Node/Express Ecosystem
- Sending Emails from Express Application