This project provides a salary calculator. You can access the project using one of the following methods:
I wrote a Dockerfile to containerize the application. I also wrote a GitHub Actions file to push the Docker container to the Docker registry. This creates a complete CI pipeline that triggers when code is pushed to the main branch. This is the most efficient way to run the project, as it avoids potential version conflicts.
-
Install Docker on your operating system and give permissions to users (if you're using Ubuntu).
-
Pull the Docker image of this project from Docker Hub using the following command:
docker pull rangadm/salary-calculator-2024-q1-rangadm:latest
-
Run the following command to see the images that you've pulled:
docker images
-
Run the Docker image using the following command:
docker run -p 5001:3000 rangadm/salary-calculator-2024-q1-rangadm:latest
-
You can see the running Docker containers using the following command:
docker ps
-
Visit http://localhost:5001 to see the application.
-
Make sure you have Node.js installed in your environment.
-
Clone the Git repository:
git clone https://github.com/RangaDM/salary-calculator-2024-Q1-RangaDM.git
-
Open the project in Visual Studio Code.
-
Run the following command in the terminal to install the dependencies:
npm install
-
Run the following command in the terminal to start the application:
npm start
I wrote complete GitHub Actions code for testing and deploying the project on GitHub Pages. So, you can visit the website directly from https://rangadm.github.io/Salary-Calculator-ultimate-CICD-pipeline/.
If you're facing any issues when running the project, please contact me. Thank you!