This repository is for aiVLE backend (a REST API server). For frontend, please refer to aiVLE FE.
- Python >= 3.7
- Django
- Additional requirements listed in
requirements.txt
- Install the requirements
pip install -r requirements.txt
- Create your secret key and store it in
.env
as
SECRET_KEY=<redacted>
BROKER_URI=<redacted>
FRONTEND_URL=<redacted>
EMAIL_HOST_USER=<redacted>
EMAIL_HOST_PASSWORD=<redacted>
DEFAULT_FROM_EMAIL=<redacted>
-
Create the
/logs
directory in the same level asmanage.py
//app
-
Migrate and create the superuser
python manage.py makemigrations
python manage.py migrate
python manage.py createsuperuser
- Run server
python manage.py runserver
-
In Django admin panel, add the email address for the superuser and set it as primary and verified. (In
localhost:8000/admin
, after logging in, click on "Email addresses", add an email address for your superuser, and check both checkboxes below.) -
In Django admin panel, create a new queue with name "default" and
public=True
without a course.