All Projects → cofonseca → WebListener

cofonseca / WebListener

Licence: other
A simple, lightweight, PowerShell-based web server, designed for small, temporary projects.

Programming Languages

powershell
5483 projects
HTML
75241 projects

Projects that are alternatives of or similar to WebListener

fcgi-function
A cross-platform module to writing C/C++ service for nginx.
Stars: ✭ 33 (+13.79%)
Mutual labels:  webserver
embedio-extras
Additional Modules showing how to extend EmbedIO.
Stars: ✭ 43 (+48.28%)
Mutual labels:  webserver
bookish spork
Erlang library for testing http requests
Stars: ✭ 82 (+182.76%)
Mutual labels:  webserver
khudro
Khudro is a very light weight web-server built with C.
Stars: ✭ 19 (-34.48%)
Mutual labels:  webserver
stirfry
StirFry is a self contained and lightweight web framework for nodejs
Stars: ✭ 24 (-17.24%)
Mutual labels:  webserver
heartbeat
A service to keep a live heartbeat (ping) on multiple devices
Stars: ✭ 27 (-6.9%)
Mutual labels:  webserver
httpsify
a transparent HTTPS termination proxy using letsencrypt with auto certification renewal
Stars: ✭ 107 (+268.97%)
Mutual labels:  webserver
internetarchivebot
iabot.toolforge.org
Stars: ✭ 67 (+131.03%)
Mutual labels:  webserver
initial-webserver-setup
Ansible playbook for initial ubuntu 16.04 webserver setup and Laravel zero time deployment
Stars: ✭ 50 (+72.41%)
Mutual labels:  webserver
Teapot
Teapot micro web framework for Pharo Smalltalk
Stars: ✭ 86 (+196.55%)
Mutual labels:  webserver
SpotifyWebApi
A .net core wrapper for the Spotify Web API
Stars: ✭ 19 (-34.48%)
Mutual labels:  webserver
wnmp-dev
Development environment: Windows + nginx + MySQL + PHP
Stars: ✭ 52 (+79.31%)
Mutual labels:  webserver
phpkoa
PHP异步编程: 基于 PHP 实(chao)现(xi) NODEJS web框架 KOA。
Stars: ✭ 52 (+79.31%)
Mutual labels:  webserver
WebServer
Powershell WebServer is a Powershell module that starts a webserver (without the need for IIS)
Stars: ✭ 27 (-6.9%)
Mutual labels:  webserver
ruby wolf
Tiny ruby web server for research and studying purpose
Stars: ✭ 19 (-34.48%)
Mutual labels:  webserver
django-http2-middleware
⚡️Django middleware to automatically send preload headers before views runs, enabling faster HTTP2 server-push (with CSP support).
Stars: ✭ 65 (+124.14%)
Mutual labels:  webserver
Anti-DDOS-Script
Anti DDOS Protection that will stop DDOS from taking down your Linux Server
Stars: ✭ 51 (+75.86%)
Mutual labels:  webserver
Kitura-HelloWorld-iOS
A Hello World example of running Kitura on iOS
Stars: ✭ 55 (+89.66%)
Mutual labels:  webserver
go-echo-server-sandbox
A scaffold of golang web server using labstack/echo
Stars: ✭ 12 (-58.62%)
Mutual labels:  webserver
rpi-nginx
[DEPRECATED] NGINX on Raspberry Pi / ARM
Stars: ✭ 20 (-31.03%)
Mutual labels:  webserver

WebListener

WebListener is a small, PowerShell-based web server. It was primarily designed for really basic, lightweight use, and for testing simple web apps. One advantage to this is that it's really easy to create a frontend that will allow you to run PowerShell code on the backend, such as a page to display server statistics, or a portal to deploy virtual machines.

Getting Started

To get started, simply import the module, then run Start-WebListener.

Start-WebListener

Your web server is now live at http://localhost:8080 !

Your web pages and supporting folder structure should live in the 'views' directory.

Routing

WebListener has a simple routing mechanism that will help you to control how requests are handled.

To add a route, open up 'Routes.ps1', and add a new hashtable to the array. Your hashtable should look like this:

@{
    'RequestType' = 'GET'
    'RequestURL' = '/'
    'RedirectURL' = '/index.html'
    'ScriptBlock = {}
}

RequestType is mandatory. This key should contain one of the following four values: GET, PUT, POST, DELETE.

RequestURL is the URL that the router will respond to. For example, to create a route for /index, enter '/index'.

RedirectURL is the full path to the file that will be served when a request for the RequestURL is made. If the filepath is the same as the RequestURL, this can be left blank or excluded.

ScriptBlock allows you to run PowerShell code when a URL is requested. If you don't want to run anything, leave this blank, or exclude it.

In the above example, when a call is made to http://localhost:8080/, the user will be redirected to 'index.html'.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].