Skip to content

ManuverGujjar/VAHM-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vahm Server

Generic badge Generic badge

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..

Example

Server server = new Server();

server.get('/', (Request req, Response res) -> {
   res.send("Hello World");
});

server.listen(8000, (Exception e -> {
    System.out.println(e);
});

returning 404

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);
});

Running the project

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

Todos

  • more Testing
  • more fuctionality

License

GitHub license

MIT

About

VAHM is Java Web server with basic functionality.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published