Quick Start Guide
Get Reseñas Gastronómicas running on your local machine in just a few minutes. This guide will walk you through the essential steps to start tracking your culinary adventures.This quick start guide assumes you have basic familiarity with the command line and Node.js. For more detailed instructions, see the Installation Guide.
Prerequisites
Before you begin, make sure you have:- Node.js (version 14 or higher)
- npm (comes with Node.js)
- A Firebase account (free tier works perfectly)
- A modern web browser
# If using git
git clone <your-repository-url>
cd resenas-gastronomicas
# Or download and extract the ZIP file
The application uses minimal dependencies and relies primarily on CDN-delivered libraries (Firebase, Tailwind CSS, Font Awesome) for a lighter footprint.
</>) to add a web app// src/js/data/firebase-config.js
export const firebaseConfig = {
apiKey: "your-api-key",
authDomain: "your-project-id.firebaseapp.com",
projectId: "your-project-id",
storageBucket: "your-project-id.appspot.com",
messagingSenderId: "your-sender-id",
appId: "your-app-id"
};
Replace the placeholder values with your actual Firebase configuration. Keep this file secure and never commit it to public repositories.
Test mode allows unrestricted read/write access. For production, you’ll want to configure proper security rules.
# Using Python
python -m http.server 8000
# Using Node.js http-server
npx http-server -p 8000
# Using PHP
php -S localhost:8000
Verify Your Setup
Once the app loads, verify everything is working:- Restaurant name: “El Emperador”
- Dish name: “Pizza Margherita”
- Photo URL: Use any image URL or leave blank
- Enable both Gian and Yami reviewers
- Add ratings and reviews for each
Understanding the Interface
The main interface consists of several key areas:Header
Displays the application title and tagline:Search & Filter Panel
- Search bar: Find reviews by restaurant, dish, or content
- Restaurant filters: Quick filter buttons for each restaurant
- “Todos” button: Show all reviews
Reviews Grid
Displays review cards in a responsive grid (1-3 columns depending on screen size). Each card shows:- Dish photo
- Restaurant and dish name
- Combined rating
- Visit date
- Quick view of reviewers
Statistics Sidebar
Shows:- Total reviews and average rating
- Best rated dish
- Worst rated dish
- Featured dish of the month
Basic Usage
Adding a Review
Searching Reviews
The search functionality looks through:- Restaurant names
- Dish names
- Review text from both reviewers
Filtering by Restaurant
Click any restaurant filter button to show only reviews from that restaurant. The “Todos” button shows all reviews.Troubleshooting
Reviews not saving to Firebase
Reviews not saving to Firebase
Possible causes:
- Firebase configuration is incorrect
- Firestore database not enabled
- Browser blocking third-party cookies
- Network connectivity issues
- Check browser console for Firebase errors
- Verify your
firebase-config.jscredentials - Ensure Firestore is enabled in Firebase Console
- Check that test mode rules are active
Application shows loading indefinitely
Application shows loading indefinitely
Possible causes:
- Firebase SDK not loading from CDN
- JavaScript errors preventing initialization
- Missing firebase-config.js file
- Check browser console for errors
- Verify internet connection (CDN access)
- Ensure
src/js/data/firebase-config.jsexists - Clear browser cache and reload
Star ratings not working
Star ratings not working
Possible causes:
- JavaScript not fully loaded
- Event listeners not initialized
- Wait for page to fully load
- Check console for JavaScript errors
- Refresh the page
Next Steps
Now that you have the application running:Detailed Installation
Learn about advanced configuration options and production setup
Customization
Customize colors, styles, and functionality to match your preferences
Firebase Security
Set up production-ready Firestore security rules
Deployment
Deploy your app to Firebase Hosting or other platforms
Getting Help
If you encounter issues:- Check the browser console for errors
- Verify all setup steps were completed
- Review the Installation Guide for detailed information
- Check Firebase Console for connectivity and quota issues
¡Buen provecho! Happy reviewing! 🍽️