npm install
npm start
npm run build
The prod-build files are located at ./build
You have to configure a nginx service with the following configuration to point at the build files.
Sample configuration:
server {
listen 80 default_server;
listen [::]:80 default_server;
server_name _;
root /pathtothisRepo/build;
index index.html;
location / {
try_files $uri $uri/ =404;
}
}
Use the docker image:
docker build -t frontend .
docker run -p 80:80 frontend
Note: IP Location tracking is only working in a hosted, externally visited application
The project was documented thoroughly using a multitude of sequence diagrams and ER-diagrams. The business architecture of the project can be seen in the diagram below. Further diagrams can be found in the documentation folder.
Component Description: Fallstudie - Component_Diagram_Description_06052021.pdf
Admin Dashboard
Admin Dashboard - Indiviudal Survey Preview
Survey Creation
Survey Preview (User is served with IFrame that can be embedded on any website)
User Results Preview