Skip to content

Full-stack development framework with Django 5.2 & Vue 3.5, featuring RBAC permission management, Docker deployment, and complete audit logging.

License

Notifications You must be signed in to change notification settings

yc913344706/initial_django_vue

Repository files navigation

English | 中文

Table of Contents

📖 Project Description

  • Minimal full-stack development framework with RBAC permission management system. Includes frontend, backend, nginx, mysql, redis.
  • Technology stack: Python 3.13, Django 5.2, Vue 3.5.
  • Code structure can be found here.

✨ Features

User System

  • ✅ Local Users: Create, read, update, delete
  • ✅ Local Users: Self-service password change, admin password reset
  • ✅ Local Users: Password complexity configuration, login lock configuration
  • ✅ Encrypted password storage (local user passwords cannot be reverse-engineered)
  • ✅ LDAP user integration support (LDAP users are recorded but passwords are not stored or modified)

Permission System

  • ✅ Basic RBAC: Manage permissions (JSON format), roles, user groups (inheritance supported)
  • ✅ JSON format permissions, can refer to existing system default permissions for new permission configurations. (Frontend and backend permissions can be configured)
  • ✅ System permissions cannot be deleted

Audit Logs

  • ✅ Login logs: User login, logout, failed login
  • ✅ Operation logs: Record all model additions, deletions, and modifications by model dimension.

Frontend Features

  • ✅ Dynamic menu (dynamically generated based on permissions)
  • ✅ Chinese/English switch

🚀 Quick Start

Requirements

  • Docker Engine 18.06.0
  • Docker Compose 3.7+

Start

Note:

  • Best used on a server.
  • When using on a personal computer, the computer load will be very high during frontend package building if the configuration is not high.
docker-compose -f docker-compose.prod.yaml up -d

Access

http://localhost:8080/

Built-in User

Role Account Password
Administrator admin Admin@123

More Commands

# Stop
docker-compose -f docker-compose.prod.yaml down

# Clean data
./clean.sh

Some Configurations

Environment Variable Configuration

Purpose File
【Frontend】Vue project configuration ./code/frontend/.env.production
【Frontend】Pure Admin configuration ./code/frontend/public/platform-config.json
./code/frontend/public/platform-config.json.explain
【Backend】Business configuration code/backend/.prod.yaml
【Backend】Full route definition file code/backend/base_routes.json
【Backend】Docker environment variables code/backend/.prod.env

Frontend Icon Configuration

  • Favicon: code/frontend/public/favicon.ico
  • Logo: code/frontend/public/logo.png
  • User avatar: code/frontend/src/assets/user.jpg

System Title Configuration

  • code/frontend/public/platform-config.json: Title
  • code/frontend/src/views/monitor/dashboard/index.vue: title

i18n

Reference Documents:

About

Full-stack development framework with Django 5.2 & Vue 3.5, featuring RBAC permission management, Docker deployment, and complete audit logging.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published