The frontend is built with ReactJS and Material-UI frameworks and written in TypeScript. To visualize markers on a world map we use Leaflet.
- Go into
frontend
directory - Run command:
yarn install
- Run command:
yarn start
- Frontend should be available at http://localhost:3000
Run yarn build
, to create a production ready build in build
folder.
If you want to test the frontend against a local backend, you can change the environment variable VITE_BACKEND_API_URL
in the .env
file.
The main frontend
config is located at frontend/srv/util/config.ts
. Further environment options like enable/disable
Browser autostart and default port can be configured in frontend/.env
. Dependencies are managed with yarn
and
located in frontend/package.json
. Compiler options for TypeScript
are located at frontend/tsconfig.json
.
First make sure you have installed all requirements for development.
- Go to
frontend
directory where filepackage.json
is located - Run command:
yarn build
- A
frontend/build
folder should be generated containing all necessary frontend files - Go into the directory where
index.html
is located - Install serve and run command:
serve -l 3000
- Frontend should be available at http://localhost:3000
Prebuild docker images are available at https://hub.docker.com/r/tormap/frontend.