This guide walks you through every step needed to get La Casa del Bordadito running locally: cloning the repository, creating a Firebase project and dropping in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/AndresLopezCorrales/La-casa-del-bordadito/llms.txt
Use this file to discover all available pages before exploring further.
google-services.json file, adding your OneSignal keys to local.properties, syncing Gradle in Android Studio, and creating your first account. By the end you will have a fully functional build connected to your own Firebase backend.
Setup steps
Set up a Firebase project
Create a new project in the Firebase console and enable the following services:
After enabling each service, register your Android app with the package name Realtime Database security rules — ensure your rules allow authenticated reads and writes for the paths the app uses. A development-friendly starting point:
| Service | Purpose |
|---|---|
| Authentication | Email/Password provider (with email verification) and Google Sign-In |
| Firestore | Café catalogue (cafes), shopping cart (carritos/{uid}/items), and order history |
| Realtime Database | User profiles (Usuarios), chat messages (Chats), unread counts (ChatsUnreadCount), embroidery patterns (patrones), and workshop info (TallerInfo) |
| Storage | Profile pictures and embroidery pattern images |
com.example.applacasadelbordadito, then download google-services.json and place it in the app/ directory:Configure OneSignal
Create a free app at onesignal.com and note your App ID and REST API Key. The app reads both values — along with four EmailJS credentials — through Add all six keys to
BuildConfig, which pulls them from local.properties at build time (see app/build.gradle.kts):local.properties in the project root (create the file if it does not exist):local.properties is gitignored, so these credentials will never be committed.The OneSignal SDK is initialised in
ApplicationClass.onCreate() using OneSignal.initWithContext(this, ONESIGNAL_APP_ID). After a successful sign-in the app calls OneSignal.login(uid) to link the device token to the Firebase user, enabling targeted push notifications.Open in Android Studio and run
- Open Android Studio (Hedgehog or later recommended) and choose Open → select the
La-casa-del-bordaditoroot directory. - Wait for the IDE to import the project, then click File → Sync Project with Gradle Files (or use the sync icon in the toolbar).
- Connect a physical Android device or start an emulator. The app requires API level 24 (Android 7.0 Nougat) or higher (
minSdk = 24inapp/build.gradle.kts). - Select your device in the run target dropdown and press Run ▶.
Create the first account and verify email
When the app launches it opens
OpcionesLogin. You can sign in with:- Google — tap Ingresar con Google. On first sign-in the app writes a new user record to
Usuarios/{uid}in the Realtime Database and sends a welcome email via EmailJS. - Email/Password — tap Ingresar con Email to reach
Login_email. If you do not have an account yet, tap REGISTRARME to openRegistro_email, fill in your email and password (enter it twice), and tap Registrar. Firebase sends a verification email; the app redirects toVerificarEmailActivityand blocks access until the link in the email is clicked.
OneSignal.login(uid) and navigates to MainActivity.