A React web-application working as Crow's Nest frontend.
- Clone the
crowsnest-frontend
repository. - Open the
crowsnest-frontend
directory in VSCode. - Install the dependencies with:
npm install
- Open a terminal window and start the frontend development server:
npm start
(accessible atlocalhost:3000
).
The Crow's Nest frontend is meant to be served by a docker container. The latest Docker container image can be pulled from MORISE's public docker registry.
To build the image yourself:
-
Clone the
crowsnest-frontend
repository.- with HTTPS:
git clone https://github.com/MO-RISE/crowsnest-frontend.git
- with SSH:
git clone git@github.com:MO-RISE/crowsnest-frontend.git
- with HTTPS:
-
Cd into the main directory (i.e. where the
Dockerfile
file is) and run the following command:
docker build . -t crowsnest-frontend .
Afterwards, the production container can be run with a command similar to this one:
docker run --rm -p 8888:80 crowsnest-frontend
The application will then be available at the URL http://localhost:9999
. Note that the production container exposes its webserver on port 80, so the -p
flag must be used to bind this port to the host. Furthermore, the -e
flag can be used to pass the environmental variable MQTT_BROKER_URL
. This variable points to the URL where the web application can reach an MQTT broker. If MQTT_BROKER_URL
is not given, the default value of XXXX
is used.
Plotting maps does not work in Firefox because it is not compatible with OffscreenCanvas
.