ErnestOrt / Trampoline

Admin Spring Boot Locally
http://ernestort.github.io/Trampoline/
Apache License 2.0
356 stars 82 forks source link
cloud deploy-tool deployment deployment-manager gradle java localhost maven microservice spring spring-boot springboot trampoline

Trampoline Twitter

Build Status Gitter

NOTE: If you want to use examples provided (microservice-example-gradle & microservice-example-maven), please, clone the repository instead of downloading release zip. They need .git folder due to git related plugins specified on pom.xml and build.gradle

Wiki

Check Trampoline's wiki: English & Spanish

https://m.youtube.com/watch?v=rv-TPTU3L_o&t=22s

Description

Welcome to Trampoline!

Are you Admin Spring Boot locally? Are you tired of that set of scripts? Relax, Trampoline has come into your life.

The aim is to help during the course of developing an application based on the paradigm of microservices with Spring Boot. How? Easy, thanks to a comfortable interface you can declare new microservices, start instances, restart and kill them.

Alt text

Also you will be able to:

Requirements

How do I make it work?

To Admin Spring Boot locally:

  1. With the Trampoline project checked out go to the trampoline sub-folder
  2. Now start trampoline, for instance with the well known commands mvn spring-boot:run or ./gradlew (or gradlew.bat) bootRun
  3. Once started go to localhost:8080
  4. If using Apache Maven then be sure to enter the path to your installation here
  5. Go to the Settings Section and add all your microservices
  6. Finally you just have to start your instances in the Instances Section

FAQ

All microservices are launched secuantially, folowing the order specified, applying defined delay for each instance.

You can use Apache Maven or Gradle Wrapper.

Theoretically yes, but it has only been fully tested on Windows and Mac OS.

You should add security starter to your microservices pom.xml:

<dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-security</artifactId>
</dependency>
"gradle.plugin.com.gorylenko.gradle-git-properties:gradle-git-properties:1.4.17"
<plugin>
    <groupId>pl.project13.maven</groupId>
    <artifactId>git-commit-id-plugin</artifactId>
    <version>2.2.3</version>
</plugin>

If you don't have git in your local machine you can easily solve it by adding credentials on Settings View

No, information introduced will be stored in a settings file along with scripts to launch each microservice :grin:. These files are stored in a trampoline folder inside your Documents folder on Mac and Linux or inside the Temp folder on Windows.

No, only instances under 127.0.0.1 will be stopped using /shutdown endpoint.

Contributing

Start Admin Spring Boot locally and then click the star button to make the author and his neighbors happy :blush:. Then fork the repository and submit a pull request for whatever change you want to be added to this project.

If you have any questions or improvement proposal, just open an issue.

Enjoy it Folks!