This README provides the steps to run Tha StudyLab Django project.
- Python 3.8 or higher
- pip (Python package installer)
-
Create a Virtual Environment:
- On macOS and Linux:
python3 -m venv env
- On Windows:
python -m venv env
- On macOS and Linux:
-
Activate the Virtual Environment:
- On macOS and Linux:
source env/bin/activate
- On Windows:
.\env\Scripts\activate
- On macOS and Linux:
-
Install Project Dependencies:
- With the virtual environment activated, install the project dependencies using pip:
pip install -r requirements.txt pip install django-pwa pip install roadmapper
- With the virtual environment activated, install the project dependencies using pip:
-
Set Environment Variables:
- Set up .env
-
Apply Migrations:
- Apply the database migrations using Django's management command:
python manage.py migrate python manage.py makemigrations
- Apply the database migrations using Django's management command:
-
Start the Development Server:
- Django comes with a built-in development server.
python manage.py runserver
- Django comes with a built-in development server.
-
Visit the Application:
- Open your web browser and navigate to
http://127.0.0.1:8000/
.
- Open your web browser and navigate to