Aiursoft.StatHub.Client 8.0.16

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global Aiursoft.StatHub.Client --version 8.0.16                
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo
dotnet tool install --local Aiursoft.StatHub.Client --version 8.0.16                
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=Aiursoft.StatHub.Client&version=8.0.16                
nuke :add-package Aiursoft.StatHub.Client --version 8.0.16                

StatHub

MIT licensed Pipeline stat Test Coverage NuGet version (Aiursoft.StatHub.Client) ManHours Docker

StatHub is a simple server stat statistics system. It can collect server stats and display them in a simple way.

overview

Run in Ubuntu

The following script will install\update this app on your Ubuntu server. Supports Ubuntu 22.04.

On your Ubuntu server, run the following command:

curl -sL https://gitlab.aiursoft.cn/aiursoft/stathub/-/raw/master/install.sh | sudo bash

Of course it is suggested that append a custom port number to the command:

curl -sL https://gitlab.aiursoft.cn/aiursoft/stathub/-/raw/master/install.sh | sudo bash -s 8080

It will install the app as a systemd service, and start it automatically. Binary files will be located at /opt/apps. Service files will be located at /etc/systemd/system.

Run manually

Requirements about how to run

  1. Install .NET 8 SDK and Node.js.
  2. Execute npm install at wwwroot folder to install the dependencies.
  3. Execute dotnet run to run the app.
  4. Use your browser to view http://localhost:5000.

Run in Microsoft Visual Studio

  1. Open the .sln file in the project path.
  2. Press F5 to run the app.

Run in Docker

First, install Docker here.

Then run the following commands in a Linux shell:

image=hub.aiursoft.cn/aiursoft/stathub
appName=stathub
sudo docker pull $image
sudo docker run -d --name $appName --restart unless-stopped -p 5000:5000 -v /var/www/$appName:/data $image

That will start a web server at http://localhost:5000 and you can test the app.

The docker image has the following context:

Properties Value
Image hub.aiursoft.cn/aiursoft/stathub
Ports 5000
Binary path /app
Data path /data
Config path /data/appsettings.json

Run client in Docker

First, install Docker here.

Then run the following commands in a Linux shell:

sudo touch /etc/motd
sudo docker run -d \
    --restart always \
    --name stathub-client \
    --pid host \
    --net host \
    -v /etc/lsb-release:/etc/lsb-release:ro \
    -v /etc/os-release:/etc/os-release:ro \
    -v /etc/motd:/etc/motd:ro \
    -v /etc/hostname:/etc/hostname:ro \
    --privileged \
    -e SERVER_ENDPOINT="https://stathub.aiursoft.cn" \
    hub.aiursoft.cn/aiursoft/stathub-client

Where https://stathub.aiursoft.cn is the endpoint of your StatHub server.

How to contribute

There are many ways to contribute to the project: logging bugs, submitting pull requests, reporting issues, and creating suggestions.

Even if you with push rights on the repository, you should create a personal fork and create feature branches there when you need them. This keeps the main repository clean and your workflow cruft out of sight.

We're also interested in your feedback on the future of this project. You can submit a suggestion or feature request through the issue tracker. To make this process more effective, we're asking that these include more information to help define them more clearly.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last updated
8.0.23 61 11/13/2024
8.0.22 61 11/13/2024
8.0.21 61 11/13/2024
8.0.20 71 10/29/2024
8.0.19 102 10/11/2024
8.0.18 94 10/7/2024
8.0.17 80 10/7/2024
8.0.16 92 9/25/2024
8.0.15 151 7/10/2024
8.0.14 109 7/8/2024
8.0.13 109 6/30/2024
8.0.12 119 6/29/2024
8.0.11 113 6/27/2024
8.0.10 111 6/14/2024
8.0.9 94 6/9/2024
8.0.8 102 6/6/2024
8.0.7 113 6/5/2024
8.0.6 219 3/17/2024
8.0.5 201 3/13/2024
8.0.4 385 2/26/2024
8.0.3 138 2/25/2024
8.0.2 245 2/21/2024
8.0.1 168 2/19/2024
8.0.0 173 2/19/2024
1.0.30 209 2/17/2024
1.0.29 183 2/15/2024
1.0.28 354 2/4/2024
1.0.27 218 2/3/2024
1.0.26 165 2/2/2024
1.0.25 179 2/2/2024
1.0.24 192 1/30/2024
1.0.23 265 1/21/2024
1.0.22 205 1/18/2024
1.0.21 276 1/10/2024
1.0.20 227 1/10/2024
1.0.19 189 1/10/2024
1.0.18 292 1/5/2024
1.0.17 166 1/5/2024
1.0.16 184 1/5/2024
1.0.15 169 1/5/2024
1.0.14 146 1/5/2024
1.0.13 158 1/5/2024
1.0.12 199 1/5/2024
1.0.11 218 1/4/2024
1.0.10 182 1/4/2024
1.0.9 180 1/4/2024
1.0.8 246 1/4/2024
1.0.7 218 1/4/2024
1.0.6 212 1/4/2024
1.0.5 204 1/1/2024
1.0.4 183 1/1/2024
1.0.3 200 1/1/2024
1.0.2 225 1/1/2024
1.0.0 202 12/30/2023