Installation
This guide provides comprehensive instructions for installing and setting up David Carrascosa’s portfolio on your local development environment.Prerequisites
Before installing the portfolio, ensure your system meets these requirements:Required Software
Node.js 18 or Higher
The portfolio requires Node.js 18+ for modern JavaScript features and optimal performance.Check your Node.js version:Install Node.js:
- Download from nodejs.org
- Or use a version manager like nvm:
Package Manager
Choose one of the following package managers:
- Bun (Recommended)
- npm
- yarn
- pnpm
Bun is a fast JavaScript runtime and package manager. This project was built with Bun.Bun documentation
Git
Git is required to clone the repository.Install Git:
- macOS:
brew install gitor download from git-scm.com - Linux:
sudo apt install git(Ubuntu/Debian) orsudo yum install git(CentOS/RHEL) - Windows: Download from git-scm.com
System Requirements
| Component | Minimum | Recommended |
|---|---|---|
| Node.js | 18.0.0 | 20.0.0+ |
| RAM | 4 GB | 8 GB+ |
| Disk Space | 500 MB | 1 GB |
| OS | macOS 10.15+, Ubuntu 20.04+, Windows 10+ | Latest stable |
Installation Steps
Clone the Repository
Clone the portfolio repository from GitHub:Navigate to the project directory:
Replace
tu-usuario with the actual GitHub username or organization.Install Dependencies
Install all required packages listed in This will install:
package.json:- Core dependencies: React, React DOM, React Router
- Build tools: Vite, TypeScript, SWC
- UI framework: Tailwind CSS, shadcn/ui, Radix UI
- Animation: Framer Motion
- Dev dependencies: ESLint, Vitest, Testing Library
Verify Installation
Verify that all dependencies were installed correctly:You should see a
node_modules directory with all installed packages.Start Development Server
Launch the Vite development server:Expected output:
The server listens on all network interfaces (
::) by default, configured in vite.config.ts:8.Environment Configuration
This portfolio does not require environment variables for basic operation. However, if you plan to add features like:- Contact form email delivery
- Analytics integration
- CMS integration
.env file:
.env
Project Structure
After installation, your project directory should look like:Verification Steps
Confirm your installation is working correctly:Run Type Checking
Verify TypeScript compilation:No output means success. Errors indicate type issues.
Build for Production
Create an optimized production build:Expected output:The
dist/ directory contains production-ready files.Preview Production Build
Troubleshooting
Common Issues
Getting Additional Help
If you’re still experiencing issues:- Check the console for error messages
- Review Vite logs in the terminal
- Search existing issues on GitHub
- Open a new issue with:
- Node.js version (
node --version) - Package manager and version
- Error messages and stack traces
- Steps to reproduce
- Node.js version (
Vite Documentation
Official Vite troubleshooting guide
React Documentation
React documentation and guides
Tailwind CSS Docs
Tailwind CSS documentation
shadcn/ui Docs
shadcn/ui component library
Next Steps
Now that you have the portfolio installed:Explore the Codebase
- Start with
src/App.tsxto understand the routing structure - Review
src/pages/Index.tsxto see how sections are composed - Browse
src/components/to explore individual components
Customize the Portfolio
- Edit content in section components (
HeroSection.tsx, etc.) - Modify styles in
tailwind.config.ts - Customize shadcn/ui components in
src/components/ui/
Build and Deploy
- Run
bun run buildto create a production build - Deploy to Vercel, Netlify, or GitHub Pages
- See the Building & Deploying guide for deployment instructions
You’re all set! The portfolio is installed and ready for development.