| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Use the Django framework to setup the configurator for AWARE
Follow these steps to run the app locally:
Clone the repository:
git clone https://github.com/awareframework/AWARE-Configurator.gitSet up the backend:
Install the required Python packages:
pip install -r requirements.txtUpdate aware_light_config_Django/settings.py: Add "127.0.0.1" to ALLOWED_HOSTS:
ALLOWED_HOSTS = ["127.0.0.1"]Set up the frontend:
Navigate to the React app directory:
cd reactappInstall the required npm packages:
npm installUpdate reactapp/src/settings:
const config = {
SERVER_PROTOCOL: "http",
SERVER_IP: "127.0.0.1",
SERVER_PORT: [8000],
};Build the React app:
npm run buildRun the Django server:
python manage.py runserverOpen your browser and visit http://127.0.0.1:8000 to view the app.
Note: When testing the app locally, you don't need to run the frontend app separately on port 3000. The Django server will serve the built React app.
clone repository git clone https://github.com/awareframework/AWARE-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-Configurator.git
make sure nginx and gunicorn is installed on the server
create cert directory in AWARE project root path mkdir 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
| Back | FazBrowse Home | New Git URL |