Skip to content

Example web application using the Minum framework

License

Notifications You must be signed in to change notification settings

byronka/minum_usage_example_mvn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Minum example project

This is a simple project meant to demonstrate use of the Minum framework. A good starting point for reading this code is the Main and TheRegister class.

Quick start:

  • To run:
./mvnw compile exec:java

then visit http://localhost:8080

Press ctrl+c to stop.

  • To test:
./mvnw test

System requirements:

JDK version 21 is required, since it provides us the virtual threads we need.

Developed in two environments:

  • MacBook Pro with OS 12.0.1, with OpenJDK 21
  • Windows 10 64-bit professional, on Cygwin, OpenJDK 21

Step-by-step guide for installing Java on Windows:

  1. Download the binary by clicking here and selecting the Windows/x64 zip.
  2. Uncompress the zip file
  3. Add the home directory to your path. The home directory of Java is the one with "bin" and "conf" directories, among others. if you, for example, uncompressed the directory to C:\java\jdk-21, then in Windows you should add it to your path, following these instructions:
  • Click the Windows start icon
  • Type env to get the system properties window
  • Click on Environment Variables
  • Under user variables, click the New button
  • For the variable name, enter JAVA_HOME, and for the value, enter C:\java\jdk-21
  • Edit your Path variable, click New, and add %JAVA_HOME%\bin

First-time use

  1. Start the application (see above)
  2. Go to http://localhost:8080
  3. Soak up the austere beauty of the homepage
  4. Click on Auth
  5. Click on Register
  6. Enter some credentials, such as foo and bar, click Enter
  7. Enter them again (you're logging in this time)
  8. Click on Sample domain
  9. Click on Enter a name
  10. Enter some names, pressing Enter each time.
  11. Click Index
  12. Click on Photos
  13. Click on Upload
  14. Select an image, enter a short caption and longer description
  15. Click Submit
  16. Click Index
  17. Click on Auth
  18. Click on Logout
  19. Go view the other pages again

Directories:

  • src: All the source code, including production and test code
  • .git: necessary files for Git.

Root-level files:

  • minum.config: a configuration file for the running app (a local / test-oriented version)
  • .gitignore: files we want Git to ignore.
  • LICENSE: the license to this software
  • pom.xml: Maven's configuration file
  • README.md: this file

About

Example web application using the Minum framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published