This project was generated with DJANGO version 3.2.9. Django is a high-level Python web framework.
Please install Python 3.
Run python -m pip install Django
.
To link Django (backend) to Angular (builded frontend)
Run cd /adc_backend/
ln -s ../adc-front/dist/adc-front/ static
Run python manage.py runserver
for a dev server. Navigate to http://127.0.0.1:8000/
.
The app will automatically reload if you change any of the source files.
Create a docker image for Postgresql.
docker run -d
--name adc-postgres
-e POSTGRES_PASSWORD=postgres
-v /data:/var/lib/postgresql/data
-p 5432:5432
postgres:14.1-alpine
Run docker start adc-postgres
Edit /backend/models.py
.
Run python manage.py makemigrations
to generate a new migration.
Run python manage.py migrate
to apply migrations.
Java is needed to get the keytool command
Run export PATH=${PATH}:<path to JDK>/bin/
Run cd certificates
Run ./createCertificates.sh
Run cd artemis_broker
Run ./manage_artemis.sh build
Run ./manage_artemis.sh start