CREATE DATABASE travanleo CHARACTER SET utf8 COLLATE utf8_general_ci
CREATE DATABASE travanleo_auth CHARACTER SET utf8 COLLATE utf8_general_ci
Create Database in MongoDB
use travanleo
Build and Run
create executeable jar file
./gradlew clean build
Note
The above command create 3 jar files
~ After gradle command executed, the jar files were located inside project root directory/build/libs
database table were created by flyway in runtime
create mysql username/password as root/mysql.In case, if you want to change it then you need to do changes in auth-service and user-service respectively
comment-service doesn't require username/password for mongodb connection
Run Oauth service in port 8080
java -jar auth-service-0.0.1-SNAPSHOT.jar
Run Comment service in port 8081
java -jar comment-service-0.0.1-SNAPSHOT.jar
Run user service in port 7070
java -jar user-service-0.0.1-SNAPSHOT.jar
How to check those API's. Run all the API's in POSTMAN tool
Run auth-service API to get token by setting authorization header as Authorization, select Basic Auth
and set username:appclient and password:appclient@123 in the body give the below form-data