Get Started in 5 Minutes
This guide will help you set up the portfolio and see it running locally as quickly as possible.Install dependencies
Install all required packages using pnpm:
This project uses pnpm v10.19.0 as specified in package.json. If you don’t have pnpm installed, run:
Start the development server
Run the development server:Your portfolio will be available at
http://localhost:5173Available Scripts
Here are the npm scripts available in package.json:Project Structure
Once installed, your project structure will look like this:Testing the AI Chat
To test the AI chat assistant:Start a conversation
Try asking questions like:
- “Tell me about Ethan’s experience”
- “What projects has he worked on?”
- “What skills does he have?”
Local Development with Netlify Functions
To test serverless functions locally:- Start Vite on
http://localhost:8888 - Enable the
/. netlify/functions/chatendpoint - Hot reload both frontend and functions
Troubleshooting
Port already in use
Port already in use
If port 5173 is already in use, Vite will automatically try the next available port. Check the console output for the actual URL.
Chat not working
Chat not working
Make sure you’ve set the
API_TOKEN environment variable in your .env file. The chat function proxies requests to Azure AI at https://models.inference.ai.azure.com/chat/completionsBuild errors
Build errors
Clear your node_modules and reinstall:
TypeScript errors
TypeScript errors
Make sure you’re using TypeScript 5.5.3 or higher. Check with:
Next Steps
Installation Guide
Learn about prerequisites and detailed setup
Customization
Personalize your portfolio with your content
Deployment
Deploy your portfolio to Netlify
API Reference
Explore the chat API and functions
The portfolio includes a welcome animation that shows on first visit. It’s stored in session storage, so it only appears once per browser session.