https://github.com/engageintellect/server-dashboard
A server dashboard using Python, WebSockets, FastAPI, Sveltekit, TailwindCSS, and DaisyUI.
https://github.com/engageintellect/server-dashboard
bash daisyui fastapi python sveltekit tailwindcss websockets
Last synced: 2 months ago
JSON representation
A server dashboard using Python, WebSockets, FastAPI, Sveltekit, TailwindCSS, and DaisyUI.
- Host: GitHub
- URL: https://github.com/engageintellect/server-dashboard
- Owner: engageintellect
- Created: 2024-04-10T04:59:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-14T04:48:04.000Z (about 2 years ago)
- Last Synced: 2024-04-14T05:09:44.227Z (about 2 years ago)
- Topics: bash, daisyui, fastapi, python, sveltekit, tailwindcss, websockets
- Language: Svelte
- Homepage: https://engage-server-dashboard.vercel.app
- Size: 8.47 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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
```bash
cd server
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
chmod +x main.py
./main.py
```
### Running the client
```bash
# 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:
```bash
pnpm run build
```
You can preview the production build with `npm run preview`.
> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.