A simple API-Server that provides a RESTful interface for the frontend, a Websocket for the simulated Blockchain and a Database for persisting the aggregated data.
To start the server you have to instantiate a Docker network by executing the script only once:
./initDockerNet.shIf an error occurs with the message: 'Error response from daemon: network with name backendnet already exists', search for the currently active Docker network with the command:
docker network lsAnd delete the corresponding network with the command:
docker network rm networknameThen try to start the docker network again. As soon as the Docker network is running you can start the MongoDB Docker with the following script. Make sure that you have set up an .env-file in the database directory with the root username and password.
./initDatabase.shAfter that you can create new users with the script './createDbUsers.sh' provided in the database directory if neccessary. Usually you only have to do this once because the database is persistent.
./database/createDbUsers.shAnd finally start the server with the script:
./initServer.shAfter the procedure you can delete the .env-file for security reasons.