- Install Python3 and pip for backend and Node and NPM for frontend
- Create a virutal environment using command
python3 -m venv env
(here env is the name of environment that gets created) - Activate environment using commad
source env/bin/activate
- Clone the project or go into project directory
- Run
pip install -r requirements.txt
This will install all the required libraries for python and Backend - Migrating Data
- Run
python manage.py migrate
to migrate Django's built in model - Run
python manage.py makemigrations account
to make migrations for our models under account/models - Run
python manage.py migrate
to migrate account models
- Run
- To load data from given CSVs
- Run
python manage.py extract_faculty
for populating professor data - Run
python manage.py extract_student
for populating student datt - Run
python manage.py extract_posts
for populatuing forum and post data
- Run
- Then run go to frontend folder by running
cd frontend
- Run command
npm i
. This will install all required libraries needed for frontend - Go to root directory of project and run
python manage.py runserver
This will start backend server. - To run frontend, open a different terminal and go to frontend directory and run
npm run dev
- Now enter
http://localhost:8000
in browser url to see the project running
Admin page can be accessed by going to address http://localhost:8000/admin
. To login into admin create a superuser first by running python manage.py createsuperuser
in project root directory. Enter username, email and password and use these username and password to login into admin.