my first Moring ip im forking and cloning this repo https://github.com/jonnygovish/galleryFork%20and%20Clone%20this%20repo.%20Links%20to%20an%20external%20site.This%20is%20an%20already%20working%20application%20that%20we%20will%20be%20translating%20into%20a%20cloud-based%20application. This application uses a database that we have to take into consideration. To facilitate deployment to Render with MongoDB, i will be using MongoDB Atlas,Links to an external site. a cloud-hosted MongoDB service. Follow this short video tutorialLinks to an external site. to set it up. Once you've created a cluster and database user on MongoDB Atlas, update the _config.js file. Replace and to have the username and password for the user you created.
Milestone 2: Basic pipeline.
First, notice that the repository does not seem to have tests. No worries, we eill build our pipeline. We will make sure that we have a JenkinsFile with the required instructions: Your pipeline should trigger automatically whenever you push a new change to your repository. It should make sure that all required software is available. This is on you to figure out what they are, but you are familiar with the project so we believe it won’t be too challenging. npm install is a useful feature here. It should deploy to Render - recall that you can start the server using node server. Make a change to the landing page of the website, and add a big “MILESTONE 2” to the site. This should be clearly visible. Push all your changes, and make sure that the website you see through Render shows MILESTONE 2
Milestone 3: Tests.
Turns out the repository did have tests, just in a different branch named test. We will Switch to the test branch and see that tests are available. we now can run them using npm test We will Merge the test branch with your main branch, and update our JenkinsFile so that our pipeline executes the tests. As with the work-along project, we should send an email in your if the tests fail. Make a change to the landing page of the website, and add a big “MILESTONE 3” to the site. This should be clearly visible. Push all your changes, and make sure that the website you see through Render shows both MILESTONE 2 and MILESTONE 3
Milestone 4: Slack integration. I Created a slack channel called YourFirstName_IP1, and invited my TM to it. Update your pipeline so that on a successful deploy, a slack message will be sent on that channel. The message should include the build ID, as well as the link to Render where the site is uploaded. (Environment variables will help!) Make a change to the landing page of the website, and add a big “MILESTONE 3” to the site. This should be clearly visible. Push all your changes, and make sure that the website you see through Render shows MILESTONE 2, MILESTONE 3, and MILESTONE 4.