Follow the steps below to run
docker pull postgres
docker run --name postgres-msa -e POSTGRES_PASSWORD=mysecretpassword -d postgres
docker pull rabbitmq
docker run -d --hostname my-rabbit --name rabbit-msa rabbitmq:3-management -p 5672:5672 -p 15672:15672
- Start Postgres service in localhost on port 5432
- Make sure there is a user 'postgres' with mysecretpassword
- Under 'postgres' user, execute setup/build_db.sql to set up new DB and load dummy data
mvn –Dmaven.test.skip=true clean install
Run below projects from the respective folders.
Hint: Note that wait for 40-60 seconds before starting the next service. This will ensure that the dependent services are registered and are available before we starting a new service.
java -jar target/config-server-1.0.jar
java -jar target/eurekaserver-1.0.jar
java -jar target/fares-1.0.jar
java -jar target/search-1.0.jar
java -jar target/checkin-1.0.jar
java -jar target/book-1.0.jar
java –jar target/fares-apigateway-1.0.jar
java –jar target/search-apigateway-1.0.jar
java –jar target/checkin-apigateway-1.0.jar
java –jar target/book-apigateway-1.0.jar
java -jar target/website-1.0.jar
Open the browser window and point to http://localhost:8001