Let's go through a quick creation of an application and a couple of routes. This shouldn't take more than 5 minutes to complete.
Start by creating a standard maven project. Make sure you're using Java 17 or newer and add the following dependency:
<dependency>
<groupId>future.group.id</groupId>
<artifactId>future.artifact.id</artifactId>
<version>0.0.1-SNAPSHOT</version>
</dependency>
Now create a class called Application.java and paste in the following code:
package ng.website;
import ng.appserver.NGApplication;
public class Application extends NGApplication {
public static void main( String[] args ) {
NGApplication.run( args, Application.class );
}
}
Run this class as a java application and point your browser to http://localhost:1200/.
Congratulations, your first application is up and running!
Now, let's add our first route. In the Application class you created earlier
(demonstrate a route re