This is the monitoring app for project lifeplans file transfer milddlesoftware.
- Generate api-token from lifeplan-backend.
- Have an MySQL database running.
- Copy and rename .env.example into .env
- Add required values to .env
- Run the app with
docker compse up
- If this is the first time running it, add user to MySQL users-table, with password hashed so that it is compatible with bcrypt-libary.
Backend:
- Copy the .env into /backend.
- Navigate to /backend.
- If needed frontend can be built with
npm run build:ui
. - Run
npm ci
to install dependencies. - Run
npm run dev
, which will start backend inlocalhost:8081
.
Frontend:
- Navigate to /frontend
- Run
npm ci
to install dependencies. - Start frontend with
npm run start
, which will start it atlocalhost:3000
, and it expects to find backend running atlocalhost:8081
.
- Build image for with
docker build . -t luomus/lifeplan-monitor:latest
- Log in to docker
- Push the image to dockerhub with
docker push luomus/lifeplan-monitor:latest
- Begin by creating a MySQL from the catalog
- Add secret and configmap, both with name lifeplan-monitor, see /openshift/lifeplan-monitor-deploymentconfig.yaml for ccorrect split.
- Import lifeplan-monitor-service.yaml
- Import lifeplan-monitor-imagestream.yaml
- Import lifeplan-monitor-deploymentconfig.yaml
- Once lifeplan-monitor pod is running access MySQL:s pod, and manually add user to users-table.