A platform that enables lecturers to create an environment where students can run and evaluate their artificial intelligence agents.
- Python >= 3.12
- Django
- Celery
- Additional requirements listed in
requirements.txt
aicon requires a database server. We recommend using MySQL for this purpose. To run MySQL in a Docker container, use the following command:
docker run --name aicon-mysql -e MYSQL_ROOT_PASSWORD=<your_password> -e MYSQL_DATABASE=aicon -p 3306:3306 -d mysql
Be sure to replace <your_password>
with a strong, secure password of your choice.
If you prefer to use SQLite instead of MySQL, no additional setup is required.
aicon relies on Celery, which requires a message broker. We recommend using RabbitMQ for this purpose.
To run RabbitMQ using Docker, you can use the following command:
docker run -d --hostname aicon-rabbit --name aicon-rabbit \
-e RABBITMQ_DEFAULT_USER=<your_username> \
-e RABBITMQ_DEFAULT_PASS=<your_password> \
-p 15672:15672 \
-p 5672:5672 \
rabbitmq:3-management
Make sure to replace <your_username>
and <your_password>
with secure credentials of your choice.
- Install the requirements
pip install -r requirements.txt
- Duplicate the
example.env
file to create a new.env
file. - Update the values in the
.env
file according to server configuration. - Create a secret key and store it in
.env
asSECRET_KEY=<Your Key>
. - Migrate, load data, and create the superuser.
python manage.py makemigrations python manage.py migrate python manage.py loaddata groups partitions python manage.py createsuperuser
- Run server.
python manage.py runserver
- For deployment, make sure to set
DEBUG=False
and use a robust WSGI server like Gunicorn.python manage.py collectstatic gunicorn --bind 0.0.0.0:8000 aicon.wsgi
/api/v1/