Skip to content

shourya5/FireStorm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FireStorm

FireStorm is an extensible Java web server framework that can serve static webpages while also providing high level access to different parts of the FireStorm web server framework. For example,creating your own custom error codes and HTTP response and request errors can be done easily using FireStorm.

MIT License

Authors

Features

  • Easy to use framework for static websites
  • High Level access to components such as HTTP error codes
  • Cross platform

Usage/Examples

import HTTP_Server_Module.Server_FrontEnd.HTTPServer;

public class main {
    public static void main(String[] args) {
        System.out.println("Starting server");
        HTTPServer server = new HTTPServer();
        server.startServer();
        System.out.println("Server connection closed");
    }
}

adding custom status codes,custom headers is as easy as updating the relevant headers ie. HTTPHeaderResponse, DateHeader, ContentTypeHeader etc.

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

PORT : this is the port number that Firestorm will serve clients from

PATH : this is the path to your html file

There are default values set for both PATH and PORT,setting these environment variables should override them.

License

MIT

Contributing

Contributions are always welcome!

Pull requests are always welcome,and if you find a bug,open an issue higlighting the bug

About

A highly extensible Java Web Server framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published