Parent topic: Configuring
There are several sample web applications included within the SDK. These demonstrate a large amount of functionality using the SDK and show off some of what it can do. this article gives an overview of each one.
The Sample Framework
Look for this in com.ibm.sbt.sample.web
Flight-booking Sample Application
Look for these in acme.sample.webapp
These apps demonstrate the usage of the SDK by way of a real-world use-case.
is a mock-up of a flight-booking application. It allows flights to be booked and keeps track of the ones you have sent for approval. acme.social.sample.webapp
is the social version of this application, . It uses the SDK for querying which of your colleagues are booking the same flight, sending email requests to book flights, sending action required
updates to your approver's ActivityStream and allowing him/her to give approval through an embedded experience. To run these samples, add acme.sample.web
to your tomcat server and go here:https://localhost:8443/acme.social.sample.webapp/" title="Social Flights App">Social Flights App
and here: https://localhost:8443/acme.sample.webapp/" title="Flightsl App">Flightsl App
Look for these in helloworld.webapp
, and social.helloworld.webapp
Sometimes you just want to get started quickly, so there are some small 'Hello World' applications included too. A fast way to test things is to copy snippets of code from the com.ibm.sample.web
application and paste them into the page in place of the snippets in the Hello World applications. To use any of these, add the war file to your server and visit the corresponding url. In particular, smartcloud.webapp is very useful for smartcloud developers and has the smartcloud navigation bar included at the top of the page. Inspect the index.html file to see how you can do this yourself. sbt.sample.app
should have special mention too because it is not a webapp, it uses standalone java files to demonstrate posting to an ActivityStream and forwarding to other ActivityStreams using admin privileges.
These are just some simple ways to get up and running with the SDK in a hurry.