Local
This chapter provides instructions on how to deploy the server locally. Follow these steps to get your server up and running on your local machine.
Prerequisites
Ensure you have Docker and Docker Compose installed on your system.
Steps to Deploy Locally
Clone the Repository
First, you need to clone the repository. Open your terminal and run:
git clone https://github.com/dscc-admin-ch/lomas.git
Navigate to the Server Directory
Move into the server directory where the Dockerfile is located:
cd server
Create a Docker Volume for MongoDB
You need to create a Docker volume for MongoDB data persistence. Run the following command:
docker volume create mongodata
Start the Server
With Docker and Docker Compose set up, you can now start the server. In the same directory, run:
docker compose up
Access the Server
Once the server is up and running, it should be accessible on localhost. Open your web browser and go to:
http://localhost