This project is currently using create-react-app
unejected.
To get started developing simply run npm ci
to installed packages followed by npm start
to start the dev server.
If you want to create a production build manually use npm run build
.
docker-cra is used to package the bundle into a docker image and to allow environment variables to be set at runtime instead of buildtime.
The following steps can be followed to build and test the dockerised application locally.
# Ensure packages are installed
npm ci
# Run a CRA build
npm run build
# Build the docker container
docker build -t sv-user-client .
# Run the docker container
docker run --env-file=.env -p 3000:80 sv-user-client
After that your app should be available at http://localhost:3000/
Helm templates are provided to deploy the user client to a kubernetes cluster.
Requirements
- Istio installed and enabled on the namespace
- Docker registry created in namespace (see below)
helm repo add stingyvegan https://helm.stingyvegan.com
helm install -n stingyvegan user-client stingyvegan/sv-user-client -f ./helm/values.yaml
# Install using local chart
helm install -n stingyvegan stingyvegan ./helm
# Uninstall
helm uninstall -n stingyvegan stingyvegan
This repo is a rewrite of https://github.com/stingyvegan/sv-client