Quick Installation
Get the Proyecto Renacer website running on your local machine in just a few minutes. This guide will walk you through cloning the repository, installing dependencies, and running the development server.This quickstart assumes you have Node.js 18+ installed on your machine. If you haven’t installed Node.js yet, download it from nodejs.org.
Prerequisites
Before you begin, ensure you have the following installed:- Node.js: Version 18.0.0 or higher
- Package Manager: npm (comes with Node.js), yarn, or pnpm
- Git: For cloning the repository
- Code Editor: VS Code recommended (with Astro extension)
Installation Steps
Clone the Repository
Clone the Proyecto Renacer source code to your local machine:Replace
<repository-url> with the actual Git repository URL for the project.Install Dependencies
Install all required npm packages defined in This will install:
package.json:- astro (^5.17.1) - The Astro framework
- tailwindcss (^4.2.1) - Utility-first CSS framework
- @tailwindcss/vite (^4.2.1) - Tailwind CSS Vite integration
The installation typically takes 30-60 seconds depending on your internet connection and machine specs.
Start Development Server
Launch the Astro development server with hot module replacement:The development server will start at
http://localhost:4321 by default.You should see output similar to:Open in Browser
Navigate to http://localhost:4321 in your web browser to view the site.You should see the Proyecto Renacer homepage with:
- Hero section with “Tu casa propia en Ambato empieza aquí”
- Social proof showing “Más de 32 familias ya son parte de este sueño”
- Project overview section
- 4-year timeline
- Community work gallery
Available Scripts
Thepackage.json file defines several scripts for different development tasks:
Development
Start the development server with hot reload:- Starts local dev server at
localhost:4321 - Enables hot module replacement (HMR)
- Watches for file changes
- Provides instant feedback during development
Build for Production
Create an optimized production build:- Compiles all
.astrofiles to static HTML - Optimizes and minifies CSS/JS
- Processes images and assets
- Generates the
dist/directory with production-ready files
Preview Production Build
Test your production build locally before deployment:- Serves the built
dist/directory - Allows you to test the production build locally
- Runs on a different port than dev server (usually
localhost:4321)
Run Astro CLI
Execute Astro CLI commands directly:Project Structure
After installation, you’ll see this directory structure:Development Workflow
Hot Module Replacement
Astro’s dev server includes HMR for instant updates:- Edit Component: Modify any
.astrocomponent - Save File: Changes are detected automatically
- Browser Updates: Page refreshes with your changes instantly
src/pages/index.astro and watch the browser update!
Adding New Pages
Astro uses file-based routing. To add a new page:Using Components
The project includes reusable components. Here’s how to use the Button component:Updating Project Data
The member count and project data are centralized insrc/data/state.ts:
- Open
src/data/state.ts - Change the
actualvalue - Save the file
- The homepage will automatically update to show “Más de X familias ya son parte de este sueño”
Environment Setup
VS Code Extensions
The project includes recommended VS Code extensions in.vscode/extensions.json:
- Astro syntax highlighting
- Astro IntelliSense
- Tailwind CSS class autocompletion
- Tailwind CSS hover previews
Dark Mode Support
The site includes built-in dark mode support through Tailwind CSS:Troubleshooting
Port Already in Use
If port 4321 is already in use, you can specify a different port:Clear Cache
If you encounter build issues, try clearing Astro’s cache:Reinstall Dependencies
If dependencies are corrupted, reinstall them:Next Steps
Now that you have the project running locally, explore these topics:Component Library
Learn about all available components and how to use them
Styling Guide
Understand the Tailwind CSS setup and design system
Deployment
Deploy your site to production hosting
Project Structure
Understand how the project is organized
Need Help? Check the Astro documentation or join the Astro Discord community for support.