Follow these steps to set up and run the backend:
- Clone the repository:
git clone https://github.com/hoangtien2k3/keycloak-auth-service.git
-
Configure the database:
-
Config file
application.yml
- Change config file
application.yml
inauth-service
andnoti-service
,noti-send
-
Config connect db R2DBC:
- url: url: r2dbc:postgresql://localhost:5434/auth
- username: admin
- password: admin
-
Config keycloak:
- clientId:
- clientSecret
- realm
- serverUrl
- grantType
- host
-
- Change config file
-
Setup docker-compose
#Open terminal Windown and Macos
docker-compose up -d
- Run each service in turn
# Using Maven
mvn spring-boot:run