To make demos clearer and slightly more custom, lets add some basic customization options to the startup script:
[x] Setting the name of the application: Default still "Social Web Demo"
[x] Setting/choosing a color / color pallet?
Closes #151
Solution
The start.sh script should ask a few questions, save the values in the env file and make sure that those values are passed through to the docker environment and correctly processed by the frontend to change the display.
Change summary
Updated start.sh to ask for name to appear in header and background color
Updated stop.sh to match start.sh updates
Updated header.tsx to get the name and color values from the environment
Updated docker-compose.yaml to pass through the env values
Add code to redact sensitive values when displaying the env file
Add code to hide the input of sensitive values
Steps to Verify
Use start.sh and start from scratch to create a new env file by answering the questions.
Verify the demo reflects the correct changes.
Additional details / screenshot
This example shows a name change and a light green background color:
Purpose
To make demos clearer and slightly more custom, lets add some basic customization options to the startup script:
Closes #151
Solution
The
start.sh
script should ask a few questions, save the values in the env file and make sure that those values are passed through to the docker environment and correctly processed by the frontend to change the display.Change summary
start.sh
to ask for name to appear in header and background colorstop.sh
to matchstart.sh
updatesheader.tsx
to get the name and color values from the environmentdocker-compose.yaml
to pass through the env valuesSteps to Verify
start.sh
and start from scratch to create a new env file by answering the questions.Additional details / screenshot
This example shows a name change and a light green background color: