GithubHelp home page GithubHelp logo

messaging24 / flight-reservation-microservices Goto Github PK

View Code? Open in Web Editor NEW

This project forked from moamr/flight-reservation-microservices

0.0 1.0 0.0 232 KB

Flight Reservation System build using Spring Boot Microservices

Java 74.81% CSS 5.71% HTML 19.49%

flight-reservation-microservices's Introduction


Spring Boot Microservices - A Flight Reservation Architecture

Flight Reservation System build using Spring Boot Microservices

How to clean your project?

Navigate to Code Files directory and run the following command:

cd Code files
mvn clean

How to build maven project using terminal and package it to either JAR or WAR file located in target folder?

mvn install

How to clean and install all microservices to run one by one?

Navigate to Code Files directory and run the following command:

cd Code files
mvn clean install -Dmaven.test.skip=true

How to run project using terminal?

mvn spring-boot:run

How to run a a jar generated to target folder in spring application as a simple java application?

cd your terminal to the location of this jar “preferred to copy this jar to a new location and cd your terminal to that new location” then run the following:

java -jar .jar

How to externalize a configuration properties "lookup to another property file outside your jar"?

Add the following to application.properties file inside config-server module, after making sure to create a directory with the name config-repo inside Documents directory on your pc.

spring.cloud.config.server.git.uri=${HOME}/Documents/config-repo
Note: You will find all the needed application.properties files inside config-server module

Setup Notes:

You have to initialize this directory as empty git repository using the command:

git init

Then add all the files using the command:

git add .

Or if you prefer to add one file at once, then use the command:

git add -A .

Then you must commit the changes you have made to the repository through the command:

git commit -m "your message"

RabbitMq Server Running Notes:

start rabbitmq-server after installing it on your machine

For more info on how to install rabbitmq server on Mac osx:

https://www.dyclassroom.com/howto-mac/how-to-install-rabbitmq-on-mac-using-homebrew

How to start rabbitmq-server on Mac terminal?

Navigate to the directory where your rabbitmq server is installed, for example:

cd /usr/local/Cellar/rabbitmq/3.8.3/sbin/
./rabbitmq-server

How to stop rabbitmq-server on Mac terminal?

Ctrl + c

Microservices (Modules) Build and Running Notes:

You have to build and run the microservices in the following order:

You can either run them using terminal or as spring boot application from your IDE.
config-server
java -jar target/config-server-0.0.1-SNAPSHOT.jar
eurekaserver
java -jar target/eurekaserver-0.0.1-SNAPSHOT.jar
search
java -jar target/search-0.0.1-SNAPSHOT.jar
search-apigateway
java -jar target/search-apigateway-0.0.1-SNAPSHOT.jar
fares
ava -jar target/fares-0.0.1-SNAPSHOT.jar
fares-apigateway
java -jar target/fares-apigateway-0.0.1-SNAPSHOT.jar
book
java -jar target/book-0.0.1-SNAPSHOT.jar
book-apigateway
java -jar target/book-apigateway-0.0.1-SNAPSHOT.jar
checkin
java -jar target/checkin-0.0.1-SNAPSHOT.jar
checkin-apigateway
java -jar target/checkin-apigateway-0.0.1-SNAPSHOT.jar
website
java -jar target/website-0.0.1-SNAPSHOT.jar

Eureka Server Discovery's Port:

http://localhost:8761


Elasticsearch running command

Navigate to elasticsearch directory after downloading and extracting it, then run the following command: directory and run the following command:

./elasticsearch-7.6.2/bin/elasticsearch

Kibana running command

Navigate to kibana directory after downloading and extracting it, then run the following command:

./kibana-7.6.2-darwin-x86_64/bin/kibana

Note: Kibana port:


Logstash running command

Navigate to kibana directory after downloading and extracting it, then run the following command and pointing to logstash.conf file's path on your pc

Example:

./logstash-7.6.2/bin/logstash -f /Users/mohammed/Desktop/logstash.conf

flight-reservation-microservices's People

Contributors

moamr avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.