Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Jesus-Puertos/h-ayuntamiento/llms.txt
Use this file to discover all available pages before exploring further.
Get Running Quickly
This guide will have you up and running with the Ayuntamiento de Zongolica platform in under 5 minutes.This quickstart uses Supabase for authentication and database. You’ll need a free Supabase account to complete setup.
Prerequisites
Ensure you have the following installed:
- Node.js 18.14.1 or higher
- npm 9.0.0 or higher (comes with Node.js)
- Git for cloning the repository
Install Dependencies
Install all required packages:This will install:
- Astro framework and integrations
- React and React DOM
- Supabase client
- TailwindCSS and UI dependencies
- Animation libraries (GSAP, Motion)
- Image processing tools
Set Up Environment Variables
Create a Edit
.env file in the root directory:.env with your configuration:.env
Configure Supabase (Optional but Recommended)
If you want to use the tourism system:
- Create a free account at supabase.com
- Create a new project
- Go to Settings > API and copy:
- Project URL →
PUBLIC_SUPABASE_URL - anon/public key →
PUBLIC_SUPABASE_ANON_KEY
- Project URL →
- Go to SQL Editor and run the setup script (see Installation for full SQL)
The platform will still run without Supabase, but authentication and tourism features will be disabled.
Explore Key Features
Now that the platform is running, explore these key areas:Government Portal
Main portal with institutional information
Tourism System
Interactive tourism platform (requires Supabase)
Xochitlanis
Cultural event landing page with gallery
Transparency
Government transparency and downloads
Available Commands
All commands are run from the root of the project:| Command | Action |
|---|---|
npm install | Install dependencies |
npm run dev | Start local dev server at localhost:4321 |
npm run build | Build production site to ./dist/ |
npm run preview | Preview production build locally |
npm run astro ... | Run Astro CLI commands |
npm run test:routes | Build and run Playwright route tests |
Next Steps
Complete Installation
Set up database, OAuth providers, and deployment
Government Portal Features
Learn about institutional pages and services
Tourism System
Understand the Xochitlanis platform and onboarding
Authentication
Configure OAuth and user management
Troubleshooting
Port 4321 already in use
Port 4321 already in use
If port 4321 is already in use, you can specify a different port:
Module not found errors
Module not found errors
If you see module resolution errors, try:
Supabase connection errors
Supabase connection errors
Verify your environment variables:
- Check
.envhas correctPUBLIC_SUPABASE_URLandPUBLIC_SUPABASE_ANON_KEY - Restart the dev server after changing
.env - Verify your Supabase project is active at app.supabase.com
Build errors with TailwindCSS
Build errors with TailwindCSS
The project uses TailwindCSS v4 with Vite plugin. Make sure you have:
For production deployment, see the Installation guide for complete setup including database initialization and OAuth configuration.
