Prerequisites
Before you begin, ensure you have the following installed:Node.js
Version 22.12.0 or higher is required. Check your version with
node --version.Installation
Install dependencies
Install all required dependencies using npm:This will install:
- Astro 6 - The web framework
- React 19 - For interactive components
- Tailwind CSS v4 - For styling
- shadcn/ui - UI component primitives
- And other dependencies
Alternative package managers
Alternative package managers
You can also use yarn or pnpm:
Start the development server
Open in browser
Navigate to http://localhost:4321 in your browser to see the portfolio.You should see the portfolio homepage with the Navbar, Hero, Skills, Projects, Contact, and Footer sections.
Development Workflow
Hot Module Replacement (HMR)
The development server supports hot module replacement. Changes to your code will automatically reflect in the browser without requiring a full page reload.Available Commands
Here are the main npm scripts you’ll use during development:Building for Production
Create production build
Generate an optimized production build:This creates a
dist/ directory with static files ready for deployment.Troubleshooting
Node version error
Node version error
If you see an error about Node version, ensure you’re using Node.js 22.12.0 or higher:If you need to upgrade, visit nodejs.org or use a version manager like nvm:
Port already in use
Port already in use
If port 4321 is already in use, Astro will automatically try the next available port. You can also specify a custom port:
Module not found errors
Module not found errors
If you encounter module resolution errors, try deleting
node_modules and reinstalling:Next Steps
Now that you have the portfolio running locally, explore these topics to understand the project better:Architecture
Learn about the project structure and technology stack
Components
Explore the Astro and React components used in the portfolio
Styling
Understand the Tailwind CSS v4 setup and theming
Development
Learn best practices for developing the portfolio