This is a frontend side for Bullseye made with React. It relies on backend server.
For development using Chrome browser:
- Redux dev tools for Chrome with src and instructions
- React dev tools for Chrome which works without additional setup
$ docker build -t {image name}:{image version} . -f Dockerfile
$ docker run -d -p 80:5000 {image name}:{image version}
Now it will be running on localhost. You can push a tested version to your Docker repository and test both backend and frontend using docker-compose. In order to push built image run:
$ docker login
$ docker push {image name}:{image version}
Due to React reading environmental variables at build time rather than start time there was a necessity to store backend URL in file in order to run on Kubernetes.
You can set backend URL in config file. Default value is http://localhost:8080
.
In order to use and test frontend visit the site where application was deployed and follow instructions on the screen.