Prerequisites
Before you begin, ensure you have the following installed:- Node.js: Version 20 or higher (this project uses Node.js 20 in CI/CD)
- Package Manager: npm (comes with Node.js), yarn, or pnpm
Installation Steps
Install dependencies
Install the project dependencies using your preferred package manager:The project uses the following main dependency:
- astro: ^5.11.1 - The Astro framework powering the portfolio
Available Commands
All commands are run from the root of the project:| Command | Action |
|---|---|
npm run dev or npm start | Starts local dev server at localhost:4321 |
npm run build | Build your production site to ./dist/ |
npm run preview | Preview your build locally, before deploying |
npm run astro | Run CLI commands like astro add, astro check |
npm run astro -- --help | Get help using the Astro CLI |
Verify Installation
Once the development server is running, open your browser and navigate tohttp://localhost:4321. You should see the portfolio homepage.
Troubleshooting
Port already in use
Port already in use
If port 4321 is already in use, Astro will automatically try the next available port. Check the terminal output for the actual URL.
Node version mismatch
Node version mismatch
Ensure you’re using Node.js 20 or higher. You can use nvm to manage multiple Node.js versions:
Dependencies fail to install
Dependencies fail to install
Try clearing your package manager cache:
Next Steps
- Configuration - Learn how to customize the site settings
- Adding Projects - Create new project entries
- Building - Build the site for production