Quick Start
In this guide, we are going to create a sample HTTP service. You can read the Core or HTTP Server modules documentation for more information. You can use both Gradle and Maven to build your application.
You can start by cloning a starter project (Gradle Starter or Maven Starter). Or you can create a project from scratch following these steps:
1 2 3 4 5 |
|
1 2 3 4 5 |
|
- Write the code in the
src/main/kotlin/Hello.kt
file:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
- Run the service and view the results at: http://localhost:2010/hello/world
Tip
If you use Gradle, you can use the Application Helper and run the application watching for
changes with the command: ./gradlew watch -t
Dependencies Verification¶
Hexagon's dependencies are signed, you can get the public key at the OpenPGP Public Key Server or here.
These are the details of the public key:
1 2 |
|
Warning
You may find a deprecated public key in public GPG key servers (check the details below). Please, ignore it and use the above one. The information about the obsolete is:
1 2 |
|
Next Steps¶
To continue learning about this toolkit, you can:
- Check the Developer Guide for more details.
- Clone the Gradle Starter or Maven Starter repository for a minimal fully working example (including tests).
- Proceed to the Examples section to check code snippets or full example projects.