Prerequisites
Before you begin, ensure you have the following installed:Node.js (Required)
The portfolio requires Node.js 18 or higher.- Check your version
- Install Node.js
- Using a version manager
v18.0.0 or higher.Package Manager (Choose One)
Youβll need a package manager to install dependencies. The project works with:- npm (comes with Node.js)
- yarn - Install with
npm install -g yarn - pnpm - Install with
npm install -g pnpm
Git (Required)
Youβll need Git to clone the repository:System Requirements
The portfolio is a lightweight Astro application with minimal system requirements.
| Requirement | Minimum | Recommended |
|---|---|---|
| Node.js | v18.0.0 | v20.0.0+ |
| RAM | 2 GB | 4 GB+ |
| Storage | 500 MB | 1 GB+ |
| OS | macOS, Linux, Windows | Any |
Installation Steps
Install dependencies
Install all required packages:This will install the following key dependencies:
package.json
Verify installation
Confirm everything is installed correctly by running:You should see output similar to:Open
http://localhost:4321 in your browser to view the site.Project Structure
After installation, youβll have this structure:Available Scripts
Thepackage.json defines these npm scripts:
| Script | Command | Description |
|---|---|---|
| dev | npm run dev | Start development server |
| build | npm run build | Build for production |
| preview | npm run preview | Preview production build |
| check:types | npm run check:types | Run TypeScript type checking |
| lint | npm run lint | Run ESLint |
| lint:fix | npm run lint:fix | Auto-fix ESLint issues |
| format:check | npm run format:check | Check code formatting |
| format:write | npm run format:write | Auto-format code |
Troubleshooting
Port already in use
If port 4321 is already in use:Node version issues
- Using nvm:
nvm install 18 && nvm use 18 - Direct download: Visit nodejs.org
Module resolution errors
If you encounter module resolution errors:-
Delete the
node_modulesfolder: -
Delete the lock file:
-
Reinstall dependencies:
Build errors with TailwindCSS
This project uses Tailwind CSS v4. If you see Tailwind-related errors:-
Ensure you have the correct version:
Should show version 4.1.12 or higher.
-
Clear the Astro cache:
-
Rebuild:
Permission errors on Windows
Alternatively, configure npm to use a different directory:Environment Variables
This portfolio doesnβt require environment variables by default. However, if you plan to add features like analytics or contact forms, create a.env file:
.env
Variables prefixed with
PUBLIC_ are exposed to the client-side code in Astro.IDE Setup
For the best development experience:VS Code (Recommended)
Install these extensions:- Astro - Official Astro language support
- Tailwind CSS IntelliSense - Tailwind class autocompletion
- ESLint - JavaScript/TypeScript linting
- Prettier - Code formatting
.vscode/extensions.json file that will prompt you to install recommended extensions.
Other IDEs
For other editors, ensure you have:- Syntax highlighting for
.astrofiles - TypeScript support
- ESLint integration
Next Steps
Now that installation is complete:Quickstart Guide
Follow the quickstart to customize your portfolio.
Project Structure
Learn about the codebase organization.
Add Projects
Start adding your own projects to the portfolio.
Customize Styling
Make the design your own with custom styles.
