To start the project simply run docker-compose up
. This should start the docker compose, which starts all necessary components.
When the docker compose has finished setting up, the website should be available under the URL : http://localhost:8080
.
By default there are two users available:
-
admin:
-
username: "admin"
-
password: "password"
-
-
user:
-
username="user"
-
password:"password"
-
The admin account has access to the conflict center, all other users do not have access to the conflict center.
Since windows uses different line endings, pulling the repository without the right git configuration may result in docker compose not working. To avoid this pull the repository by using the following command
git pull https://github.com/hhu-propra2/abschlussprojekt-illegalskillsexception --config core.autocrlf=false
See this stackoverflow post for more information.
TO start the project in dev mode the following things need to be done:
-
Start propay
-
Start the backend
-
Start the frontend
To start propay run the following command in any folder:
docker run -p 8888:8888 propra/propay:latest
To start the backend in developer mode, you need to start the project with application-dev.properties
profile.
To start the frontend, go into the frontend folder and run the following commans:
npm i
npm run start
This should start the react dev server. If the login/register does not work, you probably need to remove the "/api" from the base URL in the file "/frontend/src/Services/urlConstants.js"