Spardha is the annual sports festival of IIT (BHU), Varanasi. In its glorious history of over 36 years, Spardha has grown to become the largest and one of the most awaited sports festivals of northern India, where athletic competition is drawn from throughout the country.
Before you begin, we recommend you read about the basic building blocks that assemble this website:
- Get pull from the master to resolve conflicts if there
- Get pull from dev to resolve conflicts if there
- Don't make PR direct to the production branch(master), instead make PR to development branch(dev)
- After making PR wait and check, do all checks passed, and PR built successfully on Deployment Server
- You can download this repo and run it locally but Don't put it on your GitHub.
- Download the repo and make a new branch (the name should be related to the feature you are working on). Then after making code changes push it on the Spardha repo and make pr.
- Don't make any changes on master (locally also). Whatever you want to do, make a new branch for that.
- all branches after your PR Accept/Reject are automatically deleted.
- all PR would be made on the dev branch, not to the direct master.
Make sure you have installed all of the following prerequisites on your development machine:
- Git - Download & Install Git. OSX and Linux machines typically have this already installed.
- VS Code - Download & Install VS Code, one of the most popular code - editor developed by Microsoft.
- ReactJs,
- Django, GoogleAPI's,MySQL
Once you've downloaded the boilerplate and installed all the prerequisites, you're just a few steps away from starting to run the website
- Open the Frontend folder (Spardha-23 Project/frontend/) and open the folder in VS Code.
- Open a new terminal by clicking the command (Ctrl + Shift + `) or clicking on Terminal : New Terminal in the nav-menu
- To install the dependencies, run this in the application folder from the command line:
-
npm install
- Create a .env file in the current directory of the project using the touch command in your terminal
-
touch .env
- Get the .env variables' names from the .env.example file and paste them into the .env file
- Remember to paste all the values into the .env file
- To run the react - app, run the following command
-
npm start
- The server will listen on PORT 3000 ( localhost:3000 )
- Clone the repo in which you must work in your system.
- Create or do your work in another branch with a relevant name.
- After completing your work, commit your changes and push them.
- Create a pull request (PR).
- Creating a virtual environment:
python -m venv venv
- Activate a virtual environment
Linux:
source venv/bin/activate
Windows:
./venv/Scripts/activate
- Install dependencies
pip install -r requirements.txt
- Move to the main folder:
cd Spardha
- Apply migrations:
python manage.py migrate
- Collect static files :
python manage.py collectstatic
- Start the development server:
python manage.py runserver