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.txt
install python dependenciescd reactapp
enter react filenpm install
install javascript dependenciesnpm run build
build react filecd ..
python manage.py runserver 8000
run application
Developing Frontend Code Guide:
cd reactapp
npm run build
serve -s build
start 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
cert
directory in AWARE project root pathmkdir cert
- upload certificate file to
<project_root_path>/cert
directory - 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