The application in this demo is a simple Spring Boot API service. It returns “Hello World!” upon receiving GET requests.
You can get the entire source code project from the Calabash git repository, in this way:
% git clone https://github.com/dc-support-001/calabash-public.git Cloning into 'calabash-public'... remote: Enumerating objects: 53, done. remote: Counting objects: 100% (53/53), done. remote: Compressing objects: 100% (35/35), done. remote: Total 53 (delta 3), reused 50 (delta 3), pack-reused 0 Unpacking objects: 100% (53/53), 61.32 KiB | 1.20 MiB/s, done.
The code is downloaded to the “calabash-public” directory. You can find the “helloworld” project in it:
% cd calabash-public % ls README.md helloworld kafka-app % cd helloworld % ls README.md build.gradle container gradle gradlew gradlew.bat settings.gradle src %
This is a self-contained Gradle project. You may build and run the application on your local machine. The build process creates a uber jar in “build/libs/helloworld-1.0.2.jar.”
% ./gradlew build BUILD SUCCESSFUL in 8s 3 actionable tasks: 3 executed % java -jar build/libs/helloworld-1.0.2.jar . ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.3.0.RELEASE) 2021-12-11 00:59:33.217 INFO 47714 --- [ main] com.dcs.HelloWorldApplication : Starting HelloWorldApplication on ... 2021-12-11 00:59:33.220 INFO 47714 --- [ main] com.dcs.HelloWorldApplication : The following profiles are active: dev 2021-12-11 00:59:34.558 INFO 47714 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8888 2021-12-11 00:59:34.570 INFO 47714 --- [ main] com.dcs.HelloWorldApplication : Started HelloWorldApplication in 1.804 seconds (JVM running for 2.275)
The service of the application is at localhost:8888. Use a browser, you see it is working: