From code to app
The central concept of DevOps is to automate all steps of deployment.
Continuous Integration describes a practice where the source is built and tested on each commit a developer pushes.
Continuous Delivery is a extension of CI in which script run to make the built software able to deploy on a press of a button.
As last step Continuous Deployment automates the button pressing on certain developer actions like pushing to a branch or creating a tag.
In practice there is no distinction between the last two.
- Write a simple ExpressJS API
- npm install express
- Writing a simple hello world API
- Add some automated tests
- Refactor for testing
- npm install jest supertest --save-dev
- Push our code to GitHub
- Set up TravisCI to run automated tests (CI)
- Difference travis-ci.com travis-ci.org
- Automatically deploy to now (CD)
- Travis CLI
- Now CLI