Get Your Store Running
This guide will walk you through setting up a complete PixelTech Colombia e-commerce store on Firebase. You’ll configure Firebase services, deploy the application, and add your first product.Create Firebase Project
Start by creating a new Firebase project in the Firebase Console.
- Click Add Project
- Enter your project name (e.g., “pixeltech-store”)
- Choose whether to enable Google Analytics (recommended)
- Click Create Project
Firebase offers a generous free tier that’s perfect for getting started. You can scale up as your store grows.
Enable Firebase Services
Enable the required Firebase services for your store:
Authentication
- Go to Authentication → Get Started
- Enable Email/Password sign-in method
- Enable Google sign-in method (optional but recommended)
Firestore Database
- Go to Firestore Database → Create Database
- Start in Production Mode
- Choose your region (select closest to Colombia:
us-east1orsouthamerica-east1)
Cloud Storage
- Go to Storage → Get Started
- Start in Production Mode
- Use the same region as Firestore
Cloud Functions
- Go to Functions → Get Started
- Upgrade to Blaze (Pay as you go) plan
- Enable Cloud Functions API
Hosting
- Go to Hosting → Get Started
- Follow the setup wizard
Clone and Configure
Clone the PixelTech repository and configure your Firebase project.When prompted, select:
Terminal
- Firestore: Yes
- Functions: Yes (Node.js 24)
- Hosting: Yes
- Storage: Yes
Update Firebase Configuration
Get your Firebase config from the Firebase Console:- Go to Project Settings → General
- Scroll to “Your apps” → Web app
- Copy the configuration object
public/js/firebase-init.js with your credentials:public/js/firebase-init.js
Deploy Firestore Rules
Set up security rules to protect your data.The platform includes comprehensive security rules in Deploy the rules:
firestore.rules:firestore.rules
Terminal
The security rules ensure that:
- Anyone can browse products
- Only authenticated users can create orders
- Users can only access their own orders and data
- Admins have full access to all resources
Configure Environment Variables
Set up environment variables for Cloud Functions.Create
functions/.env file:functions/.env
Getting Payment Gateway Credentials
MercadoPago (Required for online payments):- Create account at MercadoPago Developers
- Go to “Your integrations” → “Credentials”
- Copy your Production Access Token
- Contact ADDI Colombia for merchant onboarding
- Receive API credentials after approval
Deploy Cloud Functions
Deploy the serverless backend functions.This deploys:You should see:
Terminal
- Payment processing: MercadoPago, ADDI, Sistecrédito
- Order management: Email notifications, webhooks
- Automated tasks: Cleanup, scheduled transfers
- Integrations: WhatsApp, Google Merchant Feed, sitemap
Terminal
Deploy the Frontend
Deploy your store’s frontend to Firebase Hosting.Your store will be live at:
Terminal
You can configure a custom domain in Hosting → Add custom domain in the Firebase Console.
Create Your First Admin User
Create an admin account to manage your store.Now log out and log back in to access the admin panel at
- Go to your deployed site
- Click Register and create an account
- Go to Firebase Console → Firestore Database
- Find the
userscollection - Find your user document and click to edit
- Add a field:
role(string) =admin - Save the document
The admin role grants access to:
- Product management
- Order processing
- Customer management
- Inventory tracking
- Financial reports
/admin/products.html.Add Your First Product
Add a product to your catalog through the admin panel.
- Navigate to Admin Panel → Products
- Click Create Product
- Fill in the product details:
Product Data Example
- Upload product images
- Click Save Product
Test Your Store
Now that everything is set up, test your store:Browse Products
Visit your store homepage and verify products are displayed correctly
Add to Cart
Test the shopping cart and checkout flow
Place Test Order
Use MercadoPago test credentials to process a test order
Admin Panel
Log in as admin and explore the management features
Next Steps
Architecture Overview
Learn how PixelTech works under the hood
Configure Payments
Set up additional payment methods
Frontend Styling
Customize your store’s appearance with Tailwind CSS
WhatsApp Integration
Enable customer service via WhatsApp
Common Issues
Products not loading
Products not loading
Check Firestore rules: Ensure products have
allow read: if trueVerify product status: Products must have status: "active" to appearCheck browser console: Look for Firebase authentication or permission errorsPayment functions failing
Payment functions failing
Verify environment variables: Check Test credentials: Use MercadoPago test mode first before production
functions/.env has correct credentialsCheck function logs:Images not uploading
Images not uploading
Check Storage rules: Verify
storage.rules allows authenticated writesCheck file size: Firebase Storage has default limits (5MB for free tier)Verify CORS: Ensure Firebase Storage CORS is configured correctlyAdmin panel not accessible
Admin panel not accessible
Verify user role: Check Firestore
users/{uid} has role: "admin"Clear cache: Log out and log back in to refresh authentication stateCheck security rules: Ensure admin functions check role properlyNeed help? Check the Architecture documentation for detailed technical information or review the Firebase documentation for platform-specific issues.