Hello world, but straight to the cloud
Goal
We want to host on Poja a Spring Boot Application that exposes the /hello endpoint, for which it answers ... world!.
How-to in 2 steps
Step 1: Create your application
From the Applications page, click on the Create New button, then:
Provide the name of the application
Provide the Github account where Poja will create the Github repository to put your Poja-generated starter template
Provide the package name, say
com.my.company. The starter template code will be generated in that package.Provide the name and description of the to-create Github repository. The repository name may differ from the application name.
Save. Wait. And voilà! Your application will be deployed automatically.


Step 2: Code your endpoint
In the generated Poja starter template, controllers are located in com.my.company.endpoint.rest.controller
To trigger a deployment, just commit and push the code to the preprod branch of the repository. Wait. And voilà!

Last updated
Was this helpful?
