EasyWeb is easiest web framework with a minimal number of dependencies inspired by ExpressJS. Founded on com.sun.net.httpserver package.
- Java 8
- Maven
- Freemarker (http://freemarker.org/)
- GSON for json parsing (https://github.com/google/gson)
In pom.xml file there should be an instruction containing the repository address:
<repositories>
<repository>
<id>jitpack.io</id>
<url>https://jitpack.io</url>
</repository>
</repositories>And a dependency name in dependencies section:
<dependency>
<groupId>com.github.ummo93</groupId>
<artifactId>EasyWeb</artifactId>
<version>1.1.0</version>
</dependency>import static com.appartika.easyweb.Core.*;
public class Main {
public static void main(String[] args) {
get("/", (req, res) -> res.send("ok", 200));
listen(5000);
}
}For details, use the wiki:
MIT