This repository contains the code for the BAlaS web application. The application consists of three services: the front-end server, a service that runs the BudeAlaScan jobs and a database for the job queue and holding the results. Each of these services run inside of a Docker container.
To build and run the application (in development mode), you need to have Docker installed on your computer. Once Docker is installed, there are a few steps required to run the application:
- Clone the repository to your computer (or fork it and clone if you plan to make alterations!)
- Download the Linux version of Scwrl 4 and add it to the
dependencies\_for\_isambard/
folder. - Download and install the Elm compiler:
npm install -g elm
cd web/elm-src
elm make Main.elm --debug --output=../static/elm/bals.js
- Run
docker-compose up --build
.
Once these steps have been taken the application should be available on 0.0.0.0:3803
.
This docker-compose.yml creates a shared volume between your computer and the Docker
container, which means that you can modify the web app, recompile the Elm code and fully
refresh your browser (ctrl+shift+r
generally) and the changes will be live. If you
make changes to the back-end code restart the Docker containers.
Good luck, have fun and feel free to report any issues on the GitHub page.