RangaDM / Xiteb-Practical-Exam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Xiteb-Practical-Exam

This project provides a Reactjs-frontend. You can access the project using one of the following methods:

Method 1: Visiting the Website Directly

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-2024-Q1-RangaDM/.

Method 2: Using Docker

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.

  1. Install Docker on your operating system and give permissions to users (if you're using Ubuntu).

  2. Pull the Docker image of this project from Docker Hub using the following command and run the project:

    docker pull rangadm/xiteb-practical-exam:latest
  3. Run the following command to see the images that you've pulled:

    docker images
  4. Run the Docker image using the following command:

    docker run -p 5001:5173 rangadm/xiteb-practical-exam:latest
  5. You can see the running Docker containers using the following command:

    docker ps
  6. Visit http://localhost:5001 to see the application.

Method 3: Cloning the Git Project

  1. Make sure you have Node.js installed in your environment.

  2. Clone the Git repository:

    git clone https://github.com/RangaDM/Xiteb-Practical-Exam
  3. Open the project in Visual Studio Code.

  4. Run the following command in the terminal to install the dependencies:

    npm install
  5. Run the following command in the terminal to start the application:

    npm run dev

If you're facing any issues when running the project, please contact me. Thank you!

About


Languages

Language:JavaScript 72.3%Language:CSS 26.6%Language:HTML 0.8%Language:Dockerfile 0.3%