A group of common services that supporting the micro-services
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
What things you need to install the software and how to install them
- JAVA JDK
- Intellij
- Maven
- Rabbit MQ
A step by step series of examples that tell you have to get a development env running
TODO:
- Checkout the project into your local machine
- 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
- (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
- Enable the plugin
- 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
-
- 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
- Edit hosts file and add those entries at the end of the file. (e.g. /etc/hosts)
Explain how to run the automated tests for this system
N/A
- Spring-boot - The spring framework
- Maven - Dependency Management
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Jason Yu - Initial work - Jay-fyi
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
- Hat tip to anyone who's code was used
- Inspiration
- etc