Prerequisites
Before you begin, ensure you have the following installed:- Node.js 20.x - The project requires Node.js version 20
- npm - Comes bundled with Node.js
- Git - For cloning the repository
The project uses Node.js 20.x as specified in the
.nvmrc file. If you use nvm, simply run nvm use in the project directory.Installation Steps
Install dependencies
Install all required npm packages:This will install all dependencies including:
- Astro 5.12.1 - The core framework
- Tailwind CSS - For styling
- MDX support - For content authoring
- Astro Icon - Icon system
- Free Astro Components - Component library
Start the development server
Launch the local development server:The server will start on port 4322 (as configured in
astro.config.mjs):Verify the installation
Open your browser and navigate to
http://localhost:4322. You should see the Arte y Web Creaciones homepage with:- Hero section with pricing information
- Trust badges
- Service offerings (One Page, Professional, E-commerce)
- Google reviews
- Portfolio section
Available Commands
Once installed, you can use these npm scripts from the project root:Project Structure Overview
After installation, you’ll find this folder structure:Next Steps
Now that your development environment is running:Learn About Astro
Understand how Astro powers this project
Content Collections
Explore how content is structured and managed
Component Architecture
Discover the component patterns used throughout
Get Help
Find support resources and community help
Common Issues
Port 4322 is already in use
Port 4322 is already in use
If you see an error that port 4322 is already in use, you can either:
- Stop the process using that port
- Change the port in
astro.config.mjs:
astro.config.mjs
Node version mismatch
Node version mismatch
If you encounter errors about Node.js version, ensure you’re using Node.js 20.x:If using nvm:
Sharp installation errors
Sharp installation errors
Development Tips
Hot Module Replacement (HMR): Astro automatically reloads your browser when you make changes to your code. You’ll see updates instantly without manual refreshes.
- Path Aliases: The project uses
@/*as an alias forsrc/*, so you can import with@/components/Alert.astroinstead of relative paths - TypeScript: Full TypeScript support is enabled with strict mode
- Tailwind CSS: All Tailwind utilities are available out of the box
- MDX: You can use JSX components in Markdown files