Contents

Chapter 1

Features

This chapter covers the core features and capabilities of Admin Panel.

Features

  • CRUD generator — Register any data model and get full create/read/update/delete endpoints and HTML forms
  • User management — List, create, disable, reset passwords, assign roles
  • Role-based access — Admin, editor, viewer roles with per-resource permission checks
  • System settings — Key-value settings store with typed values and change tracking
  • Audit log — Every admin action recorded with actor, action, resource, and timestamp
  • Search & pagination — Built-in search across any registered model with paginated results
  • HTML dashboard — Server-rendered admin interface with navigation, tables, forms, and flash messages
  • JSON API — Every operation also available via JSON API for programmatic access
  • Data export — Export any model's data as JSON

Requirements

  • Python 3.10+
  • No external dependencies (stdlib only)
Chapter 2

Quick Start

Follow this guide to get Admin Panel up and running in your environment.

Quick Start

bash
python src/main.py --init-demo
bash
# List all users
curl http://localhost:8007/api/users

# Create a user
curl -X POST http://localhost:8007/api/users \
  -H "Content-Type: application/json" \
  -d '{"username": "newuser", "email": "newuser@example.com", "role": "editor"}'

# Get system settings
curl http://localhost:8007/api/settings

# Update a setting
curl -X PUT http://localhost:8007/api/settings/site_name \
  -H "Content-Type: application/json" \
  -d '{"value": "My SaaS App"}'

# View audit log
curl http://localhost:8007/api/audit-log

# CRUD: list registered models
curl http://localhost:8007/api/models

# CRUD: list records for a model
curl http://localhost:8007/api/crud/projects

# CRUD: create a record
curl -X POST http://localhost:8007/api/crud/projects \
  -H "Content-Type: application/json" \
  -d '{"name": "New Project", "status": "active"}'

# Open the HTML admin panel in your browser
open http://localhost:8007/admin

API Endpoints

MethodPathDescription
GET/api/usersList all users
POST/api/usersCreate a new user
GET/api/users/:idGet user details
PUT/api/users/:idUpdate user
DELETE/api/users/:idDisable user
GET/api/settingsList all settings
PUT/api/settings/:keyUpdate a setting
GET/api/audit-logView audit log
GET/api/modelsList registered CRUD models
GET/api/crud/:modelList records for a model
POST/api/crud/:modelCreate a record
PUT/api/crud/:model/:idUpdate a record
DELETE/api/crud/:model/:idDelete a record
GET/api/export/:modelExport model data as JSON
GET/adminHTML admin dashboard
Chapter 3
🔒 Available in full product

Project Structure

You’ve reached the end of the free preview

Get the full Admin Panel and unlock everything.

All Chapters

Get the complete guide with every chapter unlocked, including code samples, diagrams, and best practices.

Full Tool Suite

Access all interactive tools with complete data, all workload profiles, and the full scenario library.

Source Files

Downloadable source code, configuration files, and working examples from every chapter.

Lifetime Updates

Free updates for life. Every new chapter, tool, and improvement included.

Buy Now — $29 →
📦 Free sample included — download another copy for the full product.
Admin Panel v1.0.0 — Free Preview