r/nicegui • u/Defiant-Comedian3967 • Aug 12 '25
Just extended the component based NiceGUI boilerplate with authentication & user management
TL;DR: Built a complete NiceGUI boilerplate with authentication (local + Google OAuth), admin user management, service layer architecture, and responsive UI. Ready-to-use template for Python web apps.
GitHub: Advanced template with login and user management
(Based on Minimal template without login and user management )
What's included:
š Authentication System
- Local SQLite user accounts with SHA-256 hashing
- Google OAuth integration
- Session-based auth with middleware protection
- Admin/user role system
š„ User Management Dashboard
- Admin interface for creating/deleting users
- Role-based permissions
- Confirmation dialogs for destructive actions
- Real-time user listing with badges
šļø Clean Architecture
- Service layer pattern (UserService, AuthService)
- Component-based UI structure
- Database abstraction with automatic migrations
- Comprehensive helper utilities
šØ UI/UX Features
- Responsive collapsible sidebar with smooth animations
- Google-inspired button styling
- Toast notifications and dialog system
- Mobile-friendly design
The setup is dead simple - clone,Ā uv sync, run, and you get a login page with a default admin account. Perfect starting point for internal tools, dashboards, or any Python web app that needs user management.
Tech stack:Ā NiceGUI + SQLite + UV package manager + Authlib
Default admin credentials areĀ admin/adminĀ (obviously change these immediately š
).
The middleware automatically protects all routes except login/assets, and the service layer keeps business logic clean and testable.



4
u/Critical_Sugar2608 Aug 12 '25
Omg! Vielen Dank dafür! ā¤ļø
1
u/sausagefinger Aug 13 '25
This looks awesome! Trying to test it out, and the readme mentions
main_login.pybut that file doesn't seem to be in the repo... Am I missing something?3
u/laulin_666 Aug 12 '25
Very cool ! Thanks.
1
u/Able_Manner_8902 Aug 13 '25
OMG, that is just awesome! Thanks again!
1
u/artereaorte Aug 13 '25
Very nice job! I wish you would have done this like 6 months ago. I had to write my own and it's not as clean as yours. I'll certainly steal some stuff from yours though, there's some nice tricks in there.
Thanks for sharing!
1
u/ckapucu Aug 22 '25
Very nice thanks
1
u/[deleted] Aug 12 '25
[removed] ā view removed comment