Skip to content

debian-cryptoanarchy/selfhost-dashboard

Repository files navigation

Selfhost Dashboard

A dashboard for selfhost package from Cryptoanarchy Debian Repository.

About

WORK IN PROGRESS!!! NOT production-ready!!! Dependencies not reviewed!

This provides a simple dashboard for users to launch apps.

Features

  • Signup on first open
  • Login
  • Open app

TODO

  • proper frontend
  • icon paths
  • opening dynamic apps
  • logout
  • change password
  • more tests
  • cleanup (fix clean architecture)
  • more doc
  • integrate into the repository (already in experimental)
  • migrate existing apps to use the dashboard

Testing

Mocking DB and system paths (recomended for initial development)

cargo run --features mock_system -- --conf config_example.toml

Open http://localhost:9009/dashboard, enter admin as username, pick any password and click submit. Dashboard with apps should open after registration finishes. See response to GET /apps to see app data

Real DB and paths

Better use version packaged in experimental. Contact me privately for more info.

  1. install postgress (apt install postgresql)
  2. create user selfhostdashboard (sudo -u postgres psql 'CREATE ROLE selfhostdashboard LOGIN PASSWORD 'satoshinakamoto';')
  3. create database selfhostdashboard (sudo -u postgres psql 'CREATE DATABASE selfhostdashboard OWNER selfhostdashboard;')
  4. mkdir -p /usr/share/selfhost-dashboard
  5. sudo cp -r static /usr/share/selfhost-dashboard
  6. sudo cp -r test_data/* /
  7. cargo run -- --conf config_example.toml

Contributing

Please don't open issues yet. There will be frequent chages. PRs to fix obvious bugs are fine.

MSRV

1.41.1 (as present in Debian Buster)