Skip to content

jay-fyi/microservice-supporting-env

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

microservice-supporting-env

A group of common services that supporting the micro-services

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

What things you need to install the software and how to install them

  1. JAVA JDK
  2. Intellij
  3. Maven
  4. Rabbit MQ

Installing

A step by step series of examples that tell you have to get a development env running

TODO:

Running the project the first time

  1. Checkout the project into your local machine
  2. Run a Rabbit MQ Broker (This is used by the Config Server and all service clients, which using the Spring Cloud Bus to dynamically update config data)
    • Download Rabbit MQ.
    • Run Rabbit MQ
      e.g. >sudo rabbitmq-server start
      
    • Check is the MQ running
      e.g. >sudo rabbitmqctl status
      
  3. (OPTIONAL) Enable Rabbit MQ Management Plugin
    • Enable the plugin
       e.g. >sudo rabbitmq-plugins enable rabbitmq_management
      
    • Check is the Management Plugin working by open the URL http://localhost:15672/
      • default username: guest
      • default password: guest
  4. Run config-server service. More details about Spring Cloud Config Server
    • Either run on Intellj directly or using Maven or executable jar

      • Using Maven
      e.g. {PROJECT_DIR}/config-server/>mvn spring-boot:run
      
      • Using executable jar - deploy to your target directory
      e.g. >java -jar {PROJECT_DIR}/target/config-server-{VERSION}.jar
      
    • Check is the config server working by open the URL http://localhost:8001/application/default. You should be able to see a Json format data

  5. Run discovery-server
    • Edit hosts file and add those entries at the end of the file. (e.g. /etc/hosts)
      127.0.0.1       eureka-primary
      127.0.0.1       eureka-secondary
      127.0.0.1       eureka-tertiary
      
    • Run the script in command-line /run-all.sh which will run 3 instances of Eureka
    • Check is the Eureka working by open the URL http://localhost:8011/. You should be able to see a Spring Eureka page with system status

Running the tests

Explain how to run the automated tests for this system

N/A

Built With

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Authors

  • Jason Yu - Initial work - Jay-fyi

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • Hat tip to anyone who's code was used
  • Inspiration
  • etc

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors