Jenkins Freestyle CICD with GitHub Integration - (Node js - ToDo App)
This Project will help you learn how to implement continuous integration and continuous deployment using Freestyle pipeline and deploy using node npm & Docker Container.
Perquisites -
Jenkins Docker & Node js with npm
Git Repository URL :
https://github.com/Bhushan0151/node-todo-cicd.git
Create EC2 Instance and install the Jenkins & Docker on the Server.
for the Installation of the Jenkins And Docker Please follow the Official Document.
Step1 : On the Dashboard-> Select New Item -> enter the name of the project -> Select the Freestyle Project -> then ok

Step 2 - Write a description of the Project -> Click on the GitHub Project and the paste git repo link over there

Step 3 - In the Source Code management -> Click on the Git and the paste git repo link over there

Step 4 - Branches to build - specify the Branch of the repository -> apply -> save



1) follow the readme File which provided by the developer, for seeing the Output-

README.md File Installation -

After installing the node js & npm -> go to the workspace and run the app.js file for seeing the output.
/var/lib/jenkins/workspace/node-todo-app- run the node app.js


Output -

2) Now Using the Docker CLI , We are doing all the Task Automatically
sudo apt install docker.io
creating Dockerflle docker build -t Node-Todo-App . docker run -d --name Node-App -p 8000:8000 node-todo-app






3) Now Using Docker with jenkins Automate the Process.
Till Build Steps , All the Steps Same are As above from step 1
Build steps -> select the excute shell -> write the command for the Build & run image on the container.


Console Output-





Last updated