Skip to content

Latest commit

 

History

History
59 lines (44 loc) · 2.11 KB

CONTRIBUTING.md

File metadata and controls

59 lines (44 loc) · 2.11 KB

Welcome to the contributions of DSC-TIET Official Website

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.

Setup and running of project (Backend)

  • Fork the repo and clone it.
  • The project now uses pipenv to manage dependencies.
  • Install Pipenv using the following command:
pip install pipenv
  • Navigate to the project directory and initialize the environment using the following command -
pipenv shell --python 3.8
  • The above step also activates the environment, for activating the environment in subsequent sessions type the following command:
pipenv shell
  • At the root of your project directory
pipenv install
pre-commit install
  • This will setup the project requirements and pre-commit test hooks!

  • After the above setup, run
    python manage.py makemigrations python manage.py migrate

  • Start the backend server python manage.py runserver Runs the backend server at default port 8000.
    Open http://localhost:8000 to view it in the browser.

Setup and running of project (Frontend)

  • At your root directory run yarn install to 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.

Note

As the project now uses pipenv to manage dependencies, you need to run pipenv install <package_name> to install the new package.

  • Use only yarn add package_name to add new packages to the frontend part.