This is a tiny kotlin server, useful for simple dev scenarios. Features and limitations:
- Validation of arguments, no hiding of errors
- No caching, will read file each time is served (ideal for development server)
- No dependency or dep management (gradle, maven). Just a single kotlin file and bat scripts
- Prints all routes that it configures
- Explicit, it requires you to declare a list of the filesnames to serve
- No nesting. It will only serve files in the same directory
startServerAfterCompile.bat
takes longer to initialize because it first compiles serve.kt to serveKt.class. However, this is only necessary if you are making changes to serve.kt
. Use startServer.bat
to run the server without compiling (starts faster)