Skip to content

AutomatedProcessImprovement/waiting-time-backend

Repository files navigation

Backend Web Service for Waiting Time Analysis CLI Tool

CI Status CD Status Coverage Status Go Reference

Deployment

Use deploy.bash script to set up and launch the production deployment. SSH access to the production machine is required.

Use docker_install.bash to install Docker in production.

NB: AppArmor causes problems with Docker, see more at https://forums.docker.com/t/can-not-stop-docker-container-permission-denied-error/41142. It may interfere with the container management and block the access to containers, so a root user can't stop or remove running containers. The solution is provided in the link.

Local development

Use run_dev.bash script to start from scratch. It does the following:

  • builds the Go application for Linux, Darwin and Windows platforms;
  • builds Docker images;
  • runs the docker compose for you, so the local deployment is ready at http://localhost:8080/.

It's possible to just start the compiled binary or run the software with go run, but the downstream waiting-time-analysis CLI tool wouldn't be available then.