An open API service indexing awesome lists of open source software.

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

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