Building an Application with Nimbus
This guide provides a sampling of how Nimbus helps you accelerate and facilitate application development. As you read more Nimbus Getting Started guides, you will see more use cases for Nimbus. It is meant to give you a quick taste of Nimbus.
What you’ll build
You’ll build a simple web application with Nimbus.
What you’ll need
-
About 10 minutes
-
A favorite text editor or IDE
-
JDK 1.8 or later
-
You can also import the code straight into your IDE:
How to complete this guide
Like most Nimbus Getting Started guides, you can start from scratch and complete each step or you can bypass basic setup steps that are already familiar to you. Either way, you end up with working code.
To start from scratch, move on to Build with Maven. (COMING SOON!)
To skip the basics, do the following:
-
Download and unzip the source repository for this guide, or clone it using Git:
git clone https://github.com/openanthem/nimbus-samples.git
-
cd into
nimbus-samples/nimbus-samples-web
Build with Maven
You can use any build system you like when building apps with Nimbus, but the code you need to work with Maven is included here.
After you execute cd
into nimbus-samples/nimbus-samples-web
, build with the following:
$ mvn clean install
Run the Application
Run the application by doing as follows:
$ mvn spring-boot:run
You should see some output like this:
2019-08-22 20:14:01.405 - INFO 87765 [] --- [restartedMain] o.s.c.support.DefaultLifecycleProcessor : Starting beans in phase 2147483647
2019-08-22 20:14:01.418 - INFO 87765 [] --- [restartedMain] d.s.w.p.DocumentationPluginsBootstrapper : Context refreshed
2019-08-22 20:14:01.433 - INFO 87765 [] --- [restartedMain] d.s.w.p.DocumentationPluginsBootstrapper : Found 1 custom documentation plugin(s)
2019-08-22 20:14:01.445 - INFO 87765 [] --- [restartedMain] s.d.s.w.s.ApiListingReferenceScanner : Scanning for api listing references
2019-08-22 20:14:01.553 - INFO 87765 [] --- [restartedMain] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: errorUsingGET_1
2019-08-22 20:14:01.558 - INFO 87765 [] --- [restartedMain] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: handleUsingGET_1
2019-08-22 20:14:01.578 - INFO 87765 [] --- [restartedMain] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: loginUsingGET_1
2019-08-22 20:14:01.644 - INFO 87765 [] --- [restartedMain] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat started on port(s): 8080 (http) with context path '/nimbus-samples-web'
2019-08-22 20:14:01.649 - INFO 87765 [] --- [restartedMain] c.a.oss.nimbus.samples.web.Application : Started Application in 11.045 seconds (JVM running for 12.599)
Finally, load the application in your favorite web browser http://localhost:8080/nimbus-samples-web/login.

Summary
Congratulations! You built a simple web application with Nimbus and learned how it can ramp up your development pace. This is only a small sampling of what Nimbus can do. Checkout the Nimbus Tutorial or Nimbus Fundamentals if you want to dig deeper.