server-dashboard Svelte Themes

Server Dashboard

A server dashboard using Python, WebSockets, FastAPI, Sveltekit, TailwindCSS, and DaisyUI.

create-svelte

Description

A simple server dashboard that displays the CPU and memory usage of the server it is running on. The server is written in Python and the client is written in Svelte.

Getting Started

Requirements

  • Nmap (install using your package manager)
  • Glances (running in webserver mode, main.py should point to it's endpoints) Note: The server must be run as root to be able to scan the network.

Running the server

cd server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
chmod +x main.py
./main.py

Running the client

# create a new project in the current directory
cd client
pnpm i && pnpm run dev --host

Building the client

To create a production version of your app:

pnpm run build

You can preview the production build with npm run preview.

To deploy your app, you may need to install an adapter for your target environment.

Top categories

Loading Svelte Themes