Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Hazielgmz/astro-Portfolio/llms.txt
Use this file to discover all available pages before exploring further.
Quick Start Guide
This guide will walk you through setting up your Astro Portfolio from scratch. You’ll have a fully functional portfolio running locally in less than 10 minutes.Before you begin, make sure you have Node.js 18.x or higher installed on your system.
Installation Steps
Clone the Repository
First, clone the Astro Portfolio repository to your local machine:
Replace
yourusername with the actual repository owner or fork the project to your own GitHub account.Set Up Environment Variables
Create a You can find these values in your Supabase project settings under API → Project URL and Project API keys.
.env file in the root of your project and add your Supabase credentials:Never commit your
.env file to version control. It’s already included in .gitignore.Configure Supabase Database
Set up your Supabase database with the required tables. You’ll need to create the following tables:The Supabase client is configured in
Required Tables
- about_me - Your personal information and bio
- careers - Your work experience and career history
- projects - Your portfolio projects
- tools - Technologies and tools you use
- certificates - Your professional certifications
- project_tool - Many-to-many relationship between projects and tools
- certificate_tool - Many-to-many relationship between certificates and tools
Detailed Setup Guide
See the complete Supabase configuration guide for table schemas and sample data
src/db/supabase.js:Start the Development Server
Run the development server to see your portfolio in action:The server will start at
http://localhost:4321 (or another port if 4321 is in use).Available Scripts
The project includes several npm scripts defined inpackage.json:
Script Descriptions
dev
Starts the development server with hot reload
build
Builds your site for production deployment
preview
Preview your production build locally
astro
Run Astro CLI commands directly
Project Structure
Here’s an overview of the key files and directories:Next Steps
Now that you have your portfolio running:Configure Content
Set up your Supabase tables and add your content
Explore Features
Learn about all the features and customization options
Customize Styles
Personalize colors, fonts, and layout to match your brand
Deploy
Deploy your portfolio to Vercel or other platforms
Troubleshooting
Development Server Won’t Start
If you encounter errors when runningpnpm dev:
-
Clear your node_modules and reinstall:
-
Check your Node.js version:
Supabase Connection Issues
If you see database errors:- Verify your environment variables are set correctly
- Check that your Supabase project is active
- Ensure your API key has the correct permissions
- Check the browser console for specific error messages
For more help, check the error messages in your terminal or browser console. They often provide specific guidance on what needs to be fixed.