42 Campus (available only inside the 42 network) is a website that allows 42 Silicon Valley students to find each other on the map. It is written in Python Django and uses 42 API to access users locations.
You will need to have Python 3 and pip 3 installed to run this project.
Also you will need to create a 42 Intra Application and copy your application ID and application Secret into corresponding variables in the top of the /website/views.py:
git clone https://github.com/AlexEzzeddine/campus42.git campus # clone the repo
cd campus
python3 -m venv --prompt campus env # create virtual environment
source env/bin/activate # enable virtual environment
pip install -r requirements.txt # install dependenciesRun a server with:
./manage.py runserveror
./manage.py runserver -s 0:portwhere 0 is a shortcut for 0.0.0.0 to make your website publicly available and port is a desired port number
Now you can access the website at localhost:8000
When you are done:
-
Press
Ctrl + Cto stop the server. -
Type
deactivatein your shell to disable virtual environment.

