Use the Django framework to setup the configurator for AWARE-light
- Technology Stack:
- back-end: Django
- front-end: React
- UI Component: Material UI
- Please install the latest python and nodejs in advanced
Initializing Environment Guide:
pip install -r requirements.txtinstall python dependenciescd reactappenter react filenpm installinstall javascript dependenciesnpm run buildbuild react filecd ..python manage.py runserver 8000run application
Developing Frontend Code Guide:
cd reactappnpm run buildserve -s buildstart servernpm start(run this if step3 not works)
- clone repository
git clone https://github.com/awareframework/AWARE-Light-Configurator.git - make sure nginx and gunicorn is installed on the server
- modify preparation.sh file
# please enter the correct ip address
REPLACEABLE_IP_ADDR=""
...
# please correct the nginx path if you install nginx in other place.
NGINX_PATH=/etc/nginx/
- run preparation.sh
bash preparation.sh - run start.sh
bash start.sh
- clone repository
git clone https://github.com/awareframework/AWARE-Light-Configurator.git - make sure nginx and gunicorn is installed on the server
- create
certdirectory in AWARE project root pathmkdir cert - upload certificate file to
<project_root_path>/certdirectory - modify preparation.sh file
# please enter the correct ip address
REPLACEABLE_IP_ADDR=""
# please enter the certificate file name for ssl setting
REPLACEABLE_CERTIFICATE=""
REPLACEABLE_CERTIFICATE_KEY=""
# please correct the nginx path if you install nginx in other place.
NGINX_PATH=/etc/nginx/
- run preparation.sh
bash preparation.sh -e - run start.sh
bash start.sh