Skip to content

Hello world

Let’s make sure everything’s working.

In this mini-tutorial we’re going to create the simplest possible Fluxzero app — just a single HTTP endpoint.


If you haven’t created a project yet, follow the installation guide first.

Open the generated Basic Starter project in your editor. Its Spring setup discovers handler classes in the application’s root package.


Create a file named HelloEndpoint.java (or .kt) in the root package:

@Component
public class HelloEndpoint {
@HandleGet("/hello")
public String hello() {
return "Hello from Fluxzero!";
}
}

@HandleGet("/hello") connects the path to the method. The returned string becomes the HTTP response body. @Component lets the starter’s Spring setup register this handler. Outside Spring, register a handler instance explicitly.


From the project directory, start the local development environment:

Terminal window
fz dev

Open the application URL shown by the CLI and append /hello. The local development guide explains the Devboard and preview.

You should see:

Hello from Fluxzero!

You’ve just added your first Fluxzero handler!

Continue with Core concepts to add stored state and commands, or build the to-do app step by step.


© 2026 Fluxzero