A cross-platform, minimalist web framework for PowerShell.
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.
New-PolarisGetRoute -Path "/helloworld" -Scriptblock {
$Response.Send('Hello World!')
}
Start-Polaris
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.
PS > Install-Module -Name Polaris -Scope CurrentUser -Force
You can now try out the example above or checkout the site for more usage information!
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.
Check out the docs folder or the site for a full API reference.
We have a few paths we are interested in taking. We hope the community helps direct us.
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.
Polaris is licensed under the MIT License.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.