https://github.com/jonatan-ivanov/nanobe
A small (one-file) spring-boot application to run experiments
https://github.com/jonatan-ivanov/nanobe
example groovy java spring spring-boot spring-cli
Last synced: 12 months ago
JSON representation
A small (one-file) spring-boot application to run experiments
- Host: GitHub
- URL: https://github.com/jonatan-ivanov/nanobe
- Owner: jonatan-ivanov
- Created: 2018-02-20T05:01:52.000Z (almost 8 years ago)
- Default Branch: main
- Last Pushed: 2021-05-09T03:50:39.000Z (almost 5 years ago)
- Last Synced: 2025-02-18T04:31:24.417Z (12 months ago)
- Topics: example, groovy, java, spring, spring-boot, spring-cli
- Language: Groovy
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nanobe
Small (one-file) spring-boot application to run experiments. https://en.wikipedia.org/wiki/Nanobe
# How to use
1. Install [spring-boot cli](https://docs.spring.io/spring-boot/docs/current/reference/html/getting-started-installing-spring-boot.html#getting-started-installing-the-cli)
1. Run: `./builder run` OR `spring run *.groovy`
1. Build jar: `./builder jar` OR `spring jar nanobe.jar .`
# Docker
- Build: `./builder dockerBuild` OR `spring jar nanobe.jar . && docker-compose build`
- Build and run: `./builder dockerRun` OR `spring jar nanobe.jar . && docker-compose up`
# Open in IntelliJ
1. Open
1. Open Module Settings
1. Project: setup the SDK
1. Modules: mark the root as `Sources` and the config as `Resources`
1. Facets: add Spring (don't forget to add the Application Context)
1. Global Libraries: add Groovy
1. `Alt+Enter` on `@Grab`: Grab the artifacts