We follow a systematic Git Workflow -
- Create a fork of this repo.
- Clone your fork of your repo on your pc.
- Add Upstream to your clone
- Every change that you do, it has to be on a branch. Commits on master would directly be closed.
- Make sure that before you create a new branch for new changes,syncing with upstream is neccesary.
- Create a folder to keep env and clone of the repo.
- Navigate to the folder and setup virtual environment using
python -m virtualenv env- Then activate the environment using
source env/Scripts/activate(Use onlyenv/Scripts/activateif on cmd or powershell) - For Linux Users it will be
source env/bin/activate - Fork the repo and clone it in the same folder.
- Navigate to the cloned repo and the run the commands:
pip install -r requirements.txt
pre-commit install- This will setup the project requirements and pre-commit test hooks!
your-folder
|-env
|-OnlineEvent
|-requirements.txt
|-.pre-commit-config.yaml
|-
|-- After the above setup, run
python manage.py makemigrations
python manage.py migrate- Start the backend server
python manage.py runserverRuns the backend server at default port8000.
Open http://localhost:8000 to view it in the browser.
- If you are adding any new requirements for the project, make sure that you are adding it to
requirements.txt
- At your root directory run
yarn installto install all the dependencies - To start react dev server
yarn start
Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.
The page will reload if you make edits.
- Use only
yarn add package_nameto add new packages to the frontend part.