feat: add frontend code
Build is deployed to the static
folder. Only index.html
and labos.json
are not ignored in this folder.
Url for labos.json can be configured using REACT_APP_LABOS_URL
env variable. To edit this value, create a .env
file in the frontend
folder and set the value there (see frontend/.env.default
for an example. Falls back to http://localhost:8000/labos.json
which should be the default when running the server locally in dev mode.
Compared to original version on https://framagit.org/Murloc6/Spirhal, the frontend does not create an HTML component anymore. Instead it uses the classic ReactDOM.createRoot
approach.