Skip to content

The smallest-possible use of the Minum web framework

Notifications You must be signed in to change notification settings

byronka/minum_usage_example_smaller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minum example - small

This is a small project meant to demonstrate use of the Minum framework. Check out the code.

Here it is:

public class Main {

   public static void main(String[] args) {
      // Start the system
      FullSystem fs = FullSystem.initialize();

      // Register some endpoints
      fs.getWebFramework().registerPath(
              RequestLine.Method.GET,
              "",
              request -> Response.htmlOk("<p>Hi there world!</p>"));

      fs.block();
   }
}

Quick start:

To build and run:

./mvnw compile exec:java

then visit http://localhost:8080

See the Minum quick start for a comprehensive (but still speedy) step-by-step.

About

The smallest-possible use of the Minum web framework

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages