Nodejs Application project : using Aws, Jenkins, Docker, Kubernetes
Step-1: Login to your Aws account and create an instance for Node.js Project.
Step-2: Install Jenkins in your nodejs server (if you don't know how to install Jenkins, follow my DevOps sample project Part -1).
Step-3: Once the installation is finished of Jenkins, go to plugin installation and click on Manage Plugins. Then Search for the "Nodejs" plugin and install it.
Step-4: Now, Click on New Item and enter the Project Name and select FreeStyle Project. Then click OK.
Step-5: write your description and then select the Git option for the git repository clone(if you did not install git plugin, please install it first).
Now go back to the dashboard and click on configuration and select Global Tool Configuration, now go down and select node js and enter the name nodejs, and the rest leave it as it is.
Now save it this page and go back to our project Configuration page.
Step-6: Enter the Nodejs Project Repository Link.
Step-7: Scroll down and select Provide Node & npm bin/folder to PATH option. select nodejs in NodeJS Installation
Now, select build script in Execute shell and enter in npm install command.
Now, Save and click on Build Now. Once you get a successful message go into your Terminal and. you will run your application and folder as well.








Comments
Post a Comment