Skip to content

Latest commit

 

History

History
105 lines (84 loc) · 4.46 KB

README.md

File metadata and controls

105 lines (84 loc) · 4.46 KB

Read Me First

The following was discovered as part of building this project:

  • This documentation is part of training for maybank project.

Concept of Microservices

image

Getting Started

Requirement

  • step 1. (OPTIONAL) docker run --name mbb-local-postgres -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:alpine
  • step 2. Java 8 and above
  • step 3. Postman
  • Step 4. Maven

Step to run the services

step 1. Run registry-server

  • mvn clean compile spring-boot:run

step 2. Run config-server

  • mvn clean compile spring-boot:run -Dspring.profiles.active=dev

step 3. Run master-data-service

  • mvn clean compile spring-boot:run

step 4. Test in postman

Server info

  • MBB-API-GATEWAY-SERVICE | Port: 8881
  • MBB-REGISTRY-SERVER | Port: 8761
  • MBB-CONFIG-SERVER | Port: 8888
  • MBB-MASTER-DATA-SERVICE | Port: 8082 (NO NEED TO POINT TO THIS PORT AS WE USED THE API GATEWAY)

Step to change database configuration

step 1. Run config-server

step 2. Change below configuration in path <mbb-config-server/src/main/resources/config-repo/application-dev.properties>

spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.database.scheme=mbb_core
spring.datasource.username=postgres
spring.datasource.password=postgres

Step to install Redis in docker

step 1. docker network create -d bridge redisnet

step 2. docker run -d -p 6379:6379 --name myredis --network redisnet redis

step 3. brew install redis

step 4. brew tap ringohub/redis-cli

Guideline Traning Documentation

Reference Documentation

For further reference, please consider the following sections:

Guides

The following guides illustrate how to use some features concretely: