Tuxboard.Examples
Examples to compliment the Tuxboard posts on DanylkoWeb
Install / Use
/learn @jdanylko/Tuxboard.ExamplesREADME
Tuxboard Examples
Tuxboard is a lightweight dashboard library specifically for the ASP.NET Core platform. It was meant to be a Lego-style way to build dashboards.
I'm continually adding more examples through the articles on my blog and using this repository for the "dropzone." (don't worry...there's more coming)
The library is located here and is available through NuGet here.
Technology Stack
- ASP.NET Core 6.0 or higher (using C#)
- Entity Framework Core
Examples
The repository contains the following examples:
- 01-SimpleDashboard<br/>The simplest way to create a static dashboard; VERY basic; no JavaScript with no features (related post) <br/><br/>
- 02-WidgetsExample<br/>A simple dashboard with a simple widget (related post)<br/><br/>
- 03-DragWidgets<br/>Using TypeScript to move Widgets around on the dashboard (related post)<br/><br/>
- 04-Tuxbar<br/>Demonstrates how to create a complimentary toolbar for Tuxboard (related post)<br/><br/>
- 05-Layout-1<br/>Create a simple layout dialog so users can adjust how their dashboard is structured (related post)<br/><br/>
- 06-Layout-2<br/>Create an advanced layout dialog for more complex layouts (related post)<br/><br/>
- 07-Add-Widgets<br/>Create an Add Widget dialog (related post)<br/><br/>
- 08-Widget-Toolbar<br/>Adding buttons and dropdown to a widget's header (related post)<br/><br/>
- 09-User-Dashboard<br/>Create user-specific dashboards when users log in (related post)<br/><br/>
- 10-Default-Dashboards<br/>Create role-specific dashboards when a user logs in (related post)<br/><br/>
- 11-Default-Widgets<br/>Create role-specific widgets (related post)<br/><br/>
- 12-Creating-Widgets<br/>Create various types of widgets (coming soon)<br/><br/>
Running Examples in Docker containers
Each example has a Dockerfile that can be used to build a Docker image that can be used to run the examples in a Docker container.
Here is how to run these examples, using the Simple Dashboard as an example.
- Set an environment variable TUXBOARDCONFIG__CONNECTIONSTRING. On Linux/Mac terminals, this would be like this, replacing the IP address, database name, username and password of your SQL Server database:
export TUXBOARDCONFIG__CONNECTIONSTRING='Data Source=IP_ADDRESS;Initial Catalog=DATABASE_NAME;Integrated Security=false;MultipleActiveResultSets=True;TrustServerCertificate=True;User Id=USERNAME;Password=PASSWORD' - Go into the 01-SampleDashboard folder and create a new file called development.env containing the following:
TUXBOARDCONFIG__CONNECTIONSTRING=CONNECTION STRING FROM STEP 2
ASPNETCORE_ENVIRONMENT=Development
- Go into the 01-SimpleDashboard folder and run the following command
docker build -t simpledashboard -f Dockerfile . - Run
dotnet ef migrations add InitialCreateto initial the database migrations. - Run
dotnet ef database updateto apply the database migrations to the database. - Run the docker container with the following command
docker run --name dash -d --env-file development.env -p 8080:8080 simpledashboard
To run a different example, delete the database created in step #3 and run steps #2 - #6 changing the name of the docker container from simpledashboard to another name to match the example.
Related Skills
node-connect
350.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.9kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
350.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
350.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
