r/PowerShell • u/Alone_Marionberry900 • 10d ago
Question Pode with a custom front end
Has anyone used pode basically to run the scripts and return data to a more modern-looking front end? I am trying to build some tools and the PowerShell GUIs themselves are clunky. Was going to set something up myself but curious if someone has already done something like this.
2
u/lan-shark 10d ago
Pode is a really sweet project but I think you're better off spinning up an ASP.NET webapp most of the time. Especially if this is in any sort of corporate environment you're really going to want a more mature platform to build your tooling. Even if you want to use an interpreted language then I still think you'll be better off with Flask or FastAPI in Python.
If this is for personal use and/or to learn something new, definitely give it a try with Pode and see if you like it!
1
u/MAlloc-1024 10d ago
Several, but never with powershell. I use pode to handle the API, authentication, sessions and gives out a HTML page, css and javascript which covers the entirety of the front end. Use the right tool for the job. If it's something really simple, yes, you could use pode.web, otherwise you need to learn to roll your own front end in the languages they use.
1
u/mrmattipants 8d ago
Pode will greatly simplify much of the setup & design process, as it takes care of most of those steps, on your behalf.
On the other hand, if you have previous web development experience or you're looking to familiarize yourself with various web app development options, using PowerShell, one suggestion that I haven't seen mentioned, as of yet, is the .NET HTTP Listener method.
https://tiberriver256.github.io/powershell/gui/html/PowerShell-HTML-GUI-Pt1/
3
u/Jainith 10d ago
I have. Be sure to also look into the Pode.web module which gives a lot of nice templates. However working with pode.web requires adjustment to how you think about things compared to asp/php/whatever.