Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
You need to have Node.js (version 18.x or newer) and a package manager like npm, yarn, or pnpm installed on your system.
-
Clone the repository: Open your terminal and run the following command to clone the project to your local machine. Replace
github-link-urlwith the actual URL of your Git repository.git clone https://github.com/shivjeet1/Leaderboard.git
-
Navigate to the project directory:
cd Leaderboard/ -
Install dependencies: Use your preferred package manager to install the project's dependencies.
- Using npm:
npm install
- Using yarn:
yarn install
- Using pnpm:
pnpm install
- Using npm:
-
Start the development server: This command will start the Vite development server, typically on
http://localhost:5173.- Using npm:
npm run dev
- Using yarn:
yarn dev
- Using pnpm:
pnpm dev
- Using npm:
The Application should start running locally on your Device.
-
Ensure you have Docker CLI installed.
-
Follow same steps in Installation Guide
-
Build your Docker Image using Dockerfile:
docker build -t leaderboard:latest . -
Run your Docker Container:
docker run -p 5173:5173 leaderboard:latest
-
Stop your Docker Container:
docker stop CONTAINER_NAME
- CONTAINER_NAME is the name of the container which can be found using 'docker ps' or 'docker ps -a'