GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - PowerShell/Polaris: A cross-platform, minimalist web framework for PowerShell

This repository was archived by the owner on Dec 8, 2021. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

97 Commits
97 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.vscode
.vscode
 
 
.vsts-ci
.vsts-ci
 
 
Private
Private
 
 
Public
Public
 
 
Tests
Tests
 
 
docs
docs
 
 
example
example
 
 
lib
lib
 
 
tools/releaseBuild
tools/releaseBuild
 
 
.editorconfig
.editorconfig
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
GITHUB_GUIDANCE.md
GITHUB_GUIDANCE.md
 
 
LICENSE.txt
LICENSE.txt
 
 
PSScriptAnalyzerSettings.psd1
PSScriptAnalyzerSettings.psd1
 
 
Polaris.psd1
Polaris.psd1
 
 
Polaris.psm1
Polaris.psm1
 
 
README.md
README.md
 
 
appveyor.yml
appveyor.yml
 
 
build.ps1
build.ps1
 
 

Repository files navigation

Polaris

Join the chat at https://gitter.im/PowerShell/Polaris Build Status PowerShell Gallery

A cross-platform, minimalist web framework for PowerShell.

Disclaimer

Polaris is currently an unsupported, experimental, proof-of-concept. There is no current plan to turn it into a supported Microsoft product.

That being said, we do plan on continuing to experiment within this repository for the foreseeable future.

Example

New-PolarisGetRoute -Path "/helloworld" -Scriptblock {
    $Response.Send('Hello World!')
}

Start-Polaris

Why yet another web framework for PowerShell?

There have been a great list of other micro web frameworks written over the years (Thanks @jaykul for the list!).

Polaris' differentiation is that it is cross-platform and uses the .NET HttpListener class.

Getting Started

Prerequisites

  • PowerShell

Steps

From the PowerShell Gallery

PS > Install-Module -Name Polaris -Scope CurrentUser -Force

You can now try out the example above or checkout the site for more usage information!

From source

  1. Clone or download the zip of the repo
  2. Open PowerShell
  3. At this point, you can now run Import-Module ./Polaris.psd1

You can now try out the example above or checkout the site for more usage!

You can also run all the Pester tests by running Invoke-Pester in the test directory. You will need Pester version 4.1.0 or higher to run the tests on Linux or MacOS.

Documentation

Check out the docs folder or the site for a full API reference.

Troubleshooting / Questions

  • Twitter: #PSPolaris
  • Slack: See us in the #Polaris channel of the PowerShell Slack
  • GitHub Issues: Submit a bug / new feature idea / or just a question as a new GitHub issue

Roadmap

We have a few paths we are interested in taking. We hope the community helps direct us.

  • Expanding on the current implementation using HttpListener to deliver features you'd expect from projects ASP.NET or Expressjs (route parameters, query parameters, middleware, auth etc)
  • Investigating the use of Kestrel/ASP.NET Routing instead of HttpListener
  • Creating a routing domain-specific language (DSL) for isolating and running script blocks as routes. Drawing inspiration from Pester.

Feedback

This project is an experiment that has the possibility to grow into something great. We can't do that without great feedback from you.

If you have an idea or find a bug, join the discussions in the issues or create a new issue.

License

Polaris is licensed under the MIT License.

Maintainers

  • Tyler Leonhardt - @TylerLeonhardt
  • Micah Rairdon - @tiberriver256

Code of Conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

About

A cross-platform, minimalist web framework for PowerShell

powershell.github.io/Polaris/

Topics

frameworkhacktoberfestpowershellwebserver

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

510 stars

Watchers

2 watching

Forks

109 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.