Getting Started

We outline here how you get started on developing and deploying our applications. Please follow the steps as outlines. You should find all the needed resources in the GitHub Repository

GitHub

First, make sure to install git and docker on your local machine.

If you do not have git installed, check out https://git-scm.com/

If you do not have docker installed, have a look here: https://www.docker.com/get-started

For the system to work locally, you need the corresponding infrastructure to run virtually on your system for our backend to connect to the necessary services.

Now we are going to do just that. Pull the newest version of infrastructure to your local machine

$ git clone https://github.com/mp-access/Infrastructure.git

Starting Docker Containers

Then in your console, cd into the corresponding directory, and start the docker containers

$ docker-compose -f .\docker-compose-dev.yml up -d

You need to have Docker Desktop running for the docker containers to be able to start up.

Check the console output for docker default machine. If it is not localhost, adapt the application.properties file accordingly.

We suggest checking up on the running containers if everything is working as expected

$ docker-compose ps

If something did not run as expected, you can have a look at the logs with "docker-compose logs".

Starting Backend

Once the infrastructure environment is running locally, we can start the backend server.

As before, pull the newest version of our backend

$ git clone https://github.com/mp-access/Backend.git

Then you can start the server by running the AccessApplication file. You find it in \Course-Service\src\main\java\ch\uzh\ifi\access\AccessApplication.java. If you are using IntelliJ IDEA, simply right click this file and press Run AccessApplication.

Starting Frontend

As before, pull the respective respository in your console

$ git clone https://github.com/mp-access/Frontend.git

Cd into the directory and start the application with

$ npm start

Your default webbrowser should open the application automatically. If not, simply open a webbrowser of your choice and navigate to localhost:3000. As shown by the terminal output, you can also access keycloack by navigating to localhost:9999.

Please check the console output, docker might be running on a different ip than localhost. check you

All done

You are all set now to start coding or using the app locally ;)

Last updated