Giter Site home page Giter Site logo

ittchmh / podedemo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from robinmalik/podedemo

0.0 0.0 0.0 664 KB

A demo website built on top of the Pode PowerShell module, building forms from JSON files and taking user submitted data to execute backend tasks, whilst updating the frontend via a websocket connection.

CSS 35.67% JavaScript 60.94% PowerShell 3.38%

podedemo's Introduction

Built using Pode:

Summary of Demo:

  • Provides a webserver that listens on both HTTP and Websockets.
  • Client application (e.g. browser) can make an initial connection over HTTP. Included JavaScript opens a websocket to the server.
  • Form data is posted over the websocket.
  • This triggers a backend script that makes (internal) HTTP POST requests to the server, which then relays JSON data over the websocket to the client. Custom javascript decides on how this is rendered in theb browser.

Prereqs:

  • Install Pode (recommended as admin for global scope): Install-Module -Name Pode -Scope AllUsers

To run:

  • Start the server: .\server.ps1
  • In a browser go to: http://localhost:8091/get-user-details
  • Watch the webpage update.

Toggle an individual task:

You can toggle individual tasks with a POST request. This will be useful for debugging/looking at css styling between running and completed states, and help understand how the front end is updated! For example:

Invoke-RestMethod "http://localhost:8091/get-user-details" -Method Post -Body '{"taskname":"Get user from Active Directory","state":"running"}' -UseBasicParsing -ContentType "application/json"

podedemo's People

Contributors

robinmalik avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.