A platform for IITG Alumni and Students to interact!
- Clone the repository using
git clone https://github.com/arjundey01/AlumniPortal.git
.
- Create a python virtual environment inside the project directory using the command
python3 -m venv env
. - To activate the environment, run
source env/bin/activate
in Linux and\env\Scripts\activate.bat
in Windows. - To exit the virtual environment, run
deactivate
.
- Activate the virtual environment
- Run
pip install -r req.txt
Note: This step is optional. Required only for the chat app for running a redis server.
- Linux:
sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io
- Windows: Follow the steps given here.
- Install Redis:
docker pull redis
- Run
python3 manage.py makemigrations
- Run
python3 manage.py migrate --run-syncdb
. Note: Use the argument--run-syncdb
only for installation.
- (Only if redis is installed) Run
docker run -p 6379:6379 -d redis:5
. (Usesudo
in linux.) - Activate the virtual environment.
- Run
python3 manage.py runserver 0.0.0.0:8000
. - The site will be available at http://localhost:8000/.