r/PowerShell • u/Badgerati • Feb 04 '20
Pode - PowerShell Web Server
I've been meaning to post about this on here for a while, so thought a new release would be a good time!
Pode is a cross-platform pure PowerShell Web Server - even HTTPS. There's also support for template engines in views, and even Azure Functions and AWS Lambda support.
Pode lets you build fully custom REST APIs and Websites, with support for Routing, Middleware, Sessions, CSRF, Authentication, and even Web Sockets.
You can run Pode on Windows or Linux, as a Windows/Linux service, in a Docker container, or even on a Raspberry Pi!
The latest release, v1.5.0, now adds OpenAPI and Swagger/ReDoc support.
You can find Pode on [Github] with a full list of features, and the documentation here.
I know some people frown at the idea of PowerShell as a Web Server, but for DevOps Automation and Dashboards it can be quite a useful tool to have! :)
2
u/nvarscar Feb 10 '20
I finally had time to play with it and I must say this is really impressive. I very much liked the ability to pass objects(!) as parameters to the views and use PS code integrated into the view to build out that web page based on that object. That felt pretty powerful. Took me some time to figure out the syntax (`$s.Query` vs `$s.Data`), but in the end it worked out just the way I wanted.
Thanks for the effort and for this huge contribution to the opensource community!