Vahm Server is Java based basic web server implementation with almost zero dependancies other than JDK on external libraries.
- Almost Zero dependancies
- Lightweight
- Easy to use
- More features comming soon..
Server server = new Server();
server.get('/', (Request req, Response res) -> {
res.send("Hello World");
});
server.listen(8000, (Exception e -> {
System.out.println(e);
});
Server server = new Server();
server.get('/invalid-url', (Request req, Response res) -> {
res.setStatus(404).send("url not found on the server");
});
server.listen(8000, (Exception e -> {
System.out.println(e);
});
Vahm requires JDK 8+ and Maven 3.3.6
git clone https://github.com/manuvergujjar/VAHM-Server.git
cd VAHM-Server/
mvn install
cd target/classes
java com/manuver/app/App
- more Testing
- more fuctionality
MIT