A personal fork of a project worked on by:
- Ashwin Santhosh, ash0545
- Dharshen K
- Kaustub Pavagada, Kaustub26Pvgda
- Lokesh Shelva, LokeshShelva
- Mayank Sharma
- Shivakumar B, ClassicBSK
- Install
nodejs
20. Download - Clone this repo
- Check the version of node
node -v
# v20.10.0
- Run the dev server
cd tournament_app
npm run dev
Open http://localhost:3000 with your browser to see the result.
This documentation provides instructions for running the application locally or through Docker.
The application expects a .env
file at the backend's root directory with the following environment variables:
ENV
: Specifies environment (Development / Production)SECRET_KEY
: For token generation / verificationALGORITHM
: For token generation / verificationACCESS_TOKEN_EXPIRE_MINUTES
: Expiration time for access tokens (minutes)REFRESH_TOKEN_EXPIRE_MINUTES
: Expiration time for refresh tokens (minutes)MONGO_CONNECTION_STRING
: Connection string for the MongoDB database
To run the application using Docker, ensure that Docker is installed and running on your machine.
-
Open a terminal and navigate to the backend's root directory.
-
Run the following command to start the application with live updates through Docker Watch:
docker compose watch
The application will start and can be accessed on the designated URL (localhost:8000)
-
The application can be stopped and the Docker container removed through the following command:
docker compose down
To run the application locally, ensure that Python 3.10+ is installed on your machine.
-
Open a terminal and navigate to the backend's root directory.
-
(Optional) Create a virtual environment and activate it through the following commands:
python -m venv env source env/bin/activate # Windows: env\Scripts\activate
-
Install the required packages through pip.
pip install -r requirements.txt
-
Run the application.
python app/main.py
The application will start and can be accessed on the designated URL (localhost:8000)