Looking for a Dashboard scaffold for your project? I made a github template

There’s been some discussion about how to best structure your dashboard.

UPDATE: I made a full blog post about UD scaffolding

Now that Github supports scaffold templates, I’m working on a little project to create a new UniversalDashboard template. Generate a new project with auto-sourcing of functions, generate a module, and start a dashboard in 10 seconds!

To create a new project:

Run the included script with a single parameter New-UDProject.ps1 -ProjectName 'myProject'

v1:

This script does the following:

  • sets a module for the project that automatically sources .ps1 files in the src folder

  • Sources each theme defined in /themes as a usable theme in New-UDDashboard -Theme $myTheme . A theme is included as an example and is enabled by default.

  • Initializes and sources all functions defined by the root module, which in turn sources all functions in /src. This means any *.ps1 files in /src automatically are availabe in all runspaces.

  • Creates a page for each page.ps1 found in /pages. A home page is included by default.

5 Likes

Interesting way to organize everything. I’ll have to play with it more. Thanks.

1 Like