Skip to content

pleszr/motivaa

Repository files navigation

motivaa

API mocker available

It is bundled with frontend, if you start it will start the mocker too.

Mock API server is running on http://localhost:3001
In order to use API mocker, please run motivaa-backend, Swagger UI available at http://localhost:8093/v3/api-docs 

HowTo Run Motivaa DOCKER - MacOS/Linux

If you haven't installed it, please install 'make'

  1. To start with the dependencies, to run ElasticSearch and Keycloak, execute the following: (make sure Docker Compose is installed)
make docker-up-es-keycloak
  1. To run motivaa-backend
make docker-up-backend
  1. To run motivaa-frontend
make docker-up-frontend
  1. To stop it
make docker-down

HowTo Run Motivaa DOCKER - Windows

Download and install Docker-Desktop -> https://docs.docker.com/desktop/install/windows-install/

To start with the dependencies, to run ElasticSearch and Keycloak, execute the following: (make sure Docker Desktop & Compose is installed)

  1. Open powershell and execute the following.
powershell -ExecutionPolicy ByPass -File .\runDocker.ps1 -Action --docker-up-es-keycloak
  1. To run motivaa-backend
powershell -ExecutionPolicy ByPass -File .\runDocker.ps1 -Action --docker-up-backend
  1. To run motivaa-frontend
powershell -ExecutionPolicy ByPass -File .\runDocker.ps1 -Action --docker-up-frontend
  1. To stop it
powershell -ExecutionPolicy ByPass -File .\runDocker.ps1 -Action --docker-down

Backend documentation

Application prints the Swagger URI to the console. See example:

2024-07-13T23:59:32.891+02:00  INFO 73517 --- [           main] c.m.c.m.PrintSwaggerUriPostStartup       : Swagger UI: http://localhost:8093/swagger-ui.html