Getting Started
This chapter describes the most basic way of creating a running QuantumMaid instance.
Dependencies and compiler configuration
To run an application with the QuantumMaid framework, you need to add the following dependency to your project:
<dependency>
<groupId>de.quantummaid.quantummaid.packagings</groupId>
<artifactId>quantummaid-essentials</artifactId>
<version>1.1.1</version>
</dependency>
Configuring an application
You can configure a QuantumMaid application like this:
final int port = 8080;
final QuantumMaid quantumMaid = QuantumMaid.quantumMaid()
.get("/", (request, response) -> response.setBody("Hello World!"))
.withLocalHostEndpointOnPort(port);
quantumMaid.runAsynchronously();
Start the application and navigate to to the url to see the response.
$ curl http://localhost:8080/helloworld
"hello world"
Next Steps
To learn more about handling requests, check out the 15 Minute Tutorial.
The remainder of this documentation explains QuantumMaid in depth.