Fediversity/panel
Valentin Gagarin 334719f529
WIP: actually typecheck
it's still broken because of the default values, need to look at it more
closely
2025-04-05 15:51:45 +02:00
..
nix Revert "POC: render jsonschema as module in Nix" 2025-04-05 14:19:30 +02:00
src WIP: actually typecheck 2025-04-05 15:51:45 +02:00
.envrc
.gitignore
default.nix WIP: add tests 2025-04-05 14:00:52 +02:00
env.nix
jsonschema.nix JSON schema converter: make regular attrs required 2025-04-05 14:19:30 +02:00
README.md
shell.nix

Fediversity Panel

The Fediversity Panel is a web service for managing Fediversity deployments with a graphical user interface, written in Django.

Development

  • To obtain all tools related to this project, enter the development environment with nix-shell.

    If you want to do that automatically on entering this directory:

    • Set up direnv

    • Run direnv allow in the directory where repository is stored on your machine

      Note

      This is a security boundary, and allows automatically running code from this repository on your machine.

  • Run NixOS integration tests and Django unit tests:

    nix-build -A tests
    
  • List all available Django management commands with:

    manage
    
  • With a fresh database, run:

    manage migrate
    
  • Run the server locally:

    manage runserver
    
  • Create an admin user:

    manage createsuperuser
    

    and log in at http://localhost:8000/admin.

  • After changing the database schema, add migrations and apply them:

    manage makemigrations
    manage migrate
    
  • Use the Django Debug Toolbar for troubleshooting in the browser