Step by step for local development setup π οΈ
This section will involves several key steps to ensure all components of the WKS Power Platform are properly set up and integrated:
π Prerequisitesβ
- Docker and Docker Compose are installed on your system.
 - Java 17 and Maven 3.8.x or higher are installed for building the Spring Boot microservices.
 - Node.js, npm, and Yarn are installed for building and running the Node.js React apps.
 
Step 1: Preparationβ
I. Clone the WKS Platform repository π₯β
git clone https://github.com/wkspower/wks-platform.git
cd wks-platform
II. From the project root folder, navigate to the java project folder πΆββοΈβ
cd apps/java
III. Build all the microservices at once using Maven for later usage ποΈβ
mvn clean install
Step 2: Custom Domain Configurationβ
note
Skip if you only intent to only use it on localhost
- Copy settings from 
/.env-sampleto/.envthen updated the file to configure essential service URLs, Keycloak Realms, and operational flags:MONGO_DEMO_DATA_LOADER_DATABASE=subdomainKEYCLOAK_TOKEN_URL=http://keycloak:8080/realms/subdomain/protocol/openid-connect/tokenREACT_APP_KEYCLOAK_URL=http://subdomain.domain.io:8082/REACT_APP_API_URL=http://subdomain.domain.io:8081/REACT_APP_STORAGE_URL=http://subdomain.domain.io:8085/WEBSOCKET_ENABLED=trueWEBSOCKET_URL=ws://subdomain.domain.io:8484/MINIO_HOST_EXTERNAL=subdomain.domain.io- Optional for novu notifications:
NOVU_ENABLED=trueNOVU_PUBLISHER_API_URL=http://subdomain.domain.io:3002/NOVU_APP_ID=your-idNOVU_API_KEY=your-key
 - Default Usernames & Passwords also can be changed:
KEYCLOAK_ADMIN=adminKEYCLOAK_ADMIN_PASSWORD=adminKEYCLOAK_DEFAULT_USER=demoKEYCLOAK_DEFAULT_USER_PASSWORD=demoKEYCLOAK_DEFAULT_USER_FIRST_NAME=demoKEYCLOAK_DEFAULT_USER_LAST_NAME=demoKEYCLOAK_DEFAULT_USER_EMAIL=demo@demo.comMINIO_ROOT_USER=minioMINIO_ROOT_PASSWORD='#minio00#'
 
 
Step 3: Deploymentβ
π Run Full Startup Shell Scriptβ
sh docker-full-startup.sh
After successfully running the shell script to start all of the the Docker Compose configurations, it may take a while for all the web applications to finish their startup process.
Step 4: Service Configurationβ
Once the startup is complete, Manually replace wks-portal Keycloak Client's Web origins and Valid redirect URIs to match your domain.