Skip to content

lightron/lightron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lightron: Web Server

Table Of Contents

About the Project

The Lightron Web Server is a lightweight web server available on two operating systems which are Windows and Linux. It is a web server developed using Rust. Rust has allowed the Lightron Web Server to be concurrent due to which a single thread can handle multiple requests allowing minimum load on the processor. You will be able to host your website using both HTTP and HTTPS. Both HTTP/1.1 and HTTP/2.0 version are supported. GUI support has been provided so that the user finds it easier to host the website. You can see the percentage of CPU resources utilized, percentage of RAM utilization by the web server in the GUI itself. Overall CPU & Memory utilization can also be seen in the statistics tab on top of the GUI. The main objective of creating this web server is to allow user to host their websites with ease with minimal load given on the machine's internal resources.

Built With

The Lightron Web Server has been developed using the following languages and various frameworks:
Rust
Fltk
Tokio
Kudos, To all other rust based libraries/crates which have also played equal & important part in the development of this project.

Getting Started

Installation


To know how to install and get started with the Lightron Web Server follow these simple steps:

Windows

  1. Download Lightron_Setup_x86-64.exe, double click it to launch the installer, and then follow the instructions.
  2. You will be asked what directory to install .exe file in.
  3. The installer will create an exe icon on the desktop and a menu-item under "All Programs"..

Linux

  • Debian Based Distribution
    1. Download the .deb file by clicking here.
    2. Open Terminal and change the directory to where the debian package has been downloaded.
    3. Type the below command to install the package.
      sudo apt-get install ./lightron-0.1.0.deb
      
  • Red Hat Based Distribution
    1. Download the .rpm file by clicking here.
    2. Open Terminal and change the directory to where the rpm package has been downloaded.
    3. RPM Fusion repository must be added to the system by following command, Ignore If already added.
      sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm
      
      sudo dnf install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
      
    4. Type the below command to install the package.
      sudo dnf install ./lightron-0.1.0-1.fc33.x86_64.rpm
      
  • Arch Based Distribution
    1. Download the .pkg.tar.zst file by clicking here.
    2. Open Terminal and change the directory to where the arch package has been downloaded.
    3. Type the below command to install the package.
      sudo pacman -U ./lightron-0.1.0-1-x86_64.pkg.tar.zst
      

Docker

  1. Download the Dockerfile.
  2. Open Terminal and change the directory to where the Dockerfile has been downloaded.
  3. Build Docker Image.
    docker build -t="lightron" .
    
  4. Run Docker Container.
    docker run -d -p 80:80 -v [volume name]:/var/www -v [path to lightron.conf file on host system]:/etc/lightron.conf lightron
    
    On Windows system volume can be found at \\wsl$\docker-desktop-data\version-pack-data\community\docker\volumes
    On Linux /var/lib/docker/volumes/

Usage

GUI usage can be found here.

To start service of the web server in windows:

  1. Using GUI
  • From Start Menu open Windows Services.
  • Find the service named Lightron and right click on it and click the start button.
  1. Using Powershell
  • Open Powershell with administrator privileges.
  • Type the below command
    Start-Service Lightron-WebServer
    
    or
    net start Lightron-WebServer
    

To start service of the web server in Linux:

  • Open Terminal.
  • Type the below command
    sudo systemctl start lightrond
    

Acknowledgements

About

Web Server

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 5