Prerequisites
Before you begin, ensure you have:- Flutter SDK installed (3.3.0 or higher)
- A Firebase account
- Git installed
- Your preferred code editor
Quick Setup
Configure Firebase
Set up your Firebase project:
- Create a new Firebase project at Firebase Console
- Enable Authentication (Email/Password), Cloud Firestore, and Firebase Storage
- Run FlutterFire CLI to auto-configure:
See the Firebase Setup guide for detailed configuration steps.
First Launch
When you first launch LarpLand, you’ll see the login screen.Create Your Account
Explore the App
Once logged in, you’ll see the main interface with three sections:Products
Browse the product catalog, search items, and add to cart
Events
Discover LARP events and register for upcoming sessions
Profile
View your profile, orders, and manage your cart
User Flows
As a Regular User
As an Admin User
To test admin features, you’ll need to manually update your user’srol field in Firestore to 1.
Once you have admin access:
Next Steps
Now that you have LarpLand running, explore these topics:Features Overview
Learn about all the features LarpLand offers
Architecture
Understand how LarpLand is built
Firebase Backend
Dive into the Firebase integration
Admin Guide
Learn how to manage the platform
Development Tips
Hot Reload
Flutter supports hot reload for instant updates:- Press
rin the terminal to hot reload - Press
Rto hot restart - Press
qto quit
Selecting a Device
List all available devices:Debug Mode Features
While running in debug mode, you can:- View detailed logs in the console
- Use Flutter DevTools for debugging
- Inspect widget trees and performance
- Monitor network requests to Firebase
Troubleshooting
Firebase not configured error
Firebase not configured error
If you see “Firebase no configurado” on launch:
- Ensure
lib/firebase_options.dartis properly configured - Run
flutterfire configureagain - Add platform-specific config files:
android/app/google-services.jsonfor Androidios/Runner/GoogleService-Info.plistfor iOS
- Restart the app
Login fails or returns error
Login fails or returns error
Check that:
- Firebase Authentication is enabled in Firebase Console
- Email/Password sign-in method is enabled
- Your internet connection is active
- Firestore security rules allow user creation
Cannot access admin features
Cannot access admin features
Admin access requires setting
rol: 1 in Firestore:- Open Firebase Console → Firestore Database
- Navigate to the
userscollection - Find your user document
- Edit the
rolfield to1 - Log out and log back in
Images not loading
Images not loading
If product images don’t appear:
- Verify Firebase Storage is enabled
- Check Storage security rules allow read access
- Ensure image URLs in Firestore are valid
- Check your network connection
For detailed installation and configuration instructions, see the Installation and Firebase Setup guides.