The admin dashboard is a Flutter application that runs on web (Chrome), Windows, and macOS. It provides a management interface for users, books, and library analytics.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/aliammari1/readrealm/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
- Flutter SDK 3.20+
- Dart SDK 3.4+ (bundled with Flutter)
flutter doctor will report any missing dependencies for your target platform.
Setup
Install dependencies
- Flutter
- Task
apps/dashboard/pubspec.yaml, including provider, http, google_fonts, fl_chart, flutter_secure_storage, and others.Configure the API URL
The dashboard connects to the ReadRealm backend. The base URL is set in To connect to a local API server, update The book service URL is configured separately in
apps/dashboard/lib/providers/auth_provider.dart:apps/dashboard/lib/providers/auth_provider.dart
_baseUrl to point to your machine:apps/dashboard/lib/services/book_service.dart:apps/dashboard/lib/services/book_service.dart
Build for production
- Web
- Windows
apps/dashboard/build/web/. Deploy the contents of this directory to any static web host.Run tests
Troubleshooting
flutter doctor reports missing dependencies
Run flutter doctor and follow its instructions for your target platform. For web, no additional setup is required beyond the Flutter SDK. For desktop builds, you may need to install platform-specific toolchains (Visual Studio Build Tools on Windows, Xcode on macOS).
Clean and reinstall after dependency errors