Prerequisites
Before you begin, make sure you have:- Node.js 20 or higher installed
- A Google account for Firebase
- Git installed on your computer
- Basic familiarity with the command line
Quick Setup
Install Dependencies
Install all required npm packages:This will install React, Firebase, Vite, and all other dependencies.
Create Firebase Project
- Go to Firebase Console
- Click Add project
- Enter a project name (e.g.,
luis-it-repair-prod) - Enable Google Analytics (optional)
- Click Create Project
Register Web App
In your Firebase project:
- Click the web icon to add a web app
- Register your app with a nickname
- Copy the Firebase configuration object
Configure Firebase SDK
Update
src/initializer/firebase.js with your Firebase credentials:src/initializer/firebase.js
Enable Authentication
In Firebase Console:
- Go to Authentication → Get Started
- Enable Email/Password sign-in method
- Save the changes
Create Firestore Database
In Firebase Console:
- Go to Firestore Database → Create database
- Start in Production mode
- Choose a location close to your users
- Click Enable
Deploy Security Rules
Install Firebase CLI and deploy the security rules:Select your project and choose Firestore when prompted.
Create Admin User
- In Firebase Console, go to Authentication → Users
- Click Add User
- Enter email:
[email protected]and a password - Copy the UID
- In Firestore Database, create a document in the
autorizadoscollection:
Test Your Setup
Create Your First Service Ticket
- Navigate to Hoja de Servicio (Service Sheet)
- Enter customer information (name, phone)
- Fill in device details (type, brand, model)
- Add service description and issue
- Click Guardar (Save)
Next Steps
Complete Installation
Deploy to production with Firebase Hosting
Configure POS
Set up the Point of Sale system
Explore Features
Learn about all available features
API Reference
Explore the service API
Troubleshooting
Login fails after entering correct credentials
Login fails after entering correct credentials
- Check that Firebase Authentication is enabled
- Verify the user exists in Firebase Authentication
- Ensure the user’s UID is in the
autorizadosFirestore collection - Check browser console for specific error messages
Cannot create service tickets
Cannot create service tickets
- Verify Firestore security rules are deployed
- Check that you’re logged in with an authenticated user
- Open browser DevTools Network tab to see if requests are being blocked
- Ensure the
servicioscollection has proper write permissions for authenticated users
Development server won't start
Development server won't start
- Ensure Node.js 20+ is installed:
node --version - Delete
node_modulesandpackage-lock.json, then runnpm installagain - Check that port 5173 is not already in use
- Look for error messages in the terminal output
Firebase configuration errors
Firebase configuration errors
- Double-check all Firebase config values in
src/initializer/firebase.js - Ensure there are no quotes or special characters in the config values
- Verify the project ID matches your Firebase project
- Try creating a fresh Firebase config from the Firebase Console
For production deployment with Firebase Hosting, custom domains, and advanced configuration, see the complete installation guide.
