This guide walks you through everything needed to run Mi Portfolio on your local machine. By the end you’ll have cloned the repository, installed all dependencies, and be viewing the site atDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/lgomegarc/mi-portfolio/llms.txt
Use this file to discover all available pages before exploring further.
http://localhost:5173 with hot-module replacement enabled.
Prerequisites
Before you begin, make sure you have the following installed:- Node.js 18 or later — SvelteKit requires Node 18+. Check your version with
node -v. - A package manager — npm (bundled with Node), pnpm, or yarn all work.
- Git — needed to clone the repository.
Quick Start
Clone the repository
Clone the Mi Portfolio source from GitHub and navigate into the project directory:
Install dependencies
Install all project dependencies (devDependencies included — they are required for the build):
Available Scripts
All scripts are defined inpackage.json and executed via your package manager of choice.
| Script | Command | Description |
|---|---|---|
dev | vite dev | Starts the Vite development server with HMR at localhost:5173. |
build | vite build | Compiles a production-optimised build using @sveltejs/adapter-vercel. |
preview | vite preview | Serves the production build locally for final pre-deploy verification. |
check | svelte-kit sync && svelte-check --tsconfig ./tsconfig.json | Runs the SvelteKit sync step then type-checks all .svelte and .ts files. |
check:watch | svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch | Same as check but stays active and re-checks on every file save. |
format | prettier --write . | Auto-formats the entire codebase using Prettier (with Svelte and Tailwind plugins). |
lint | prettier --check . && eslint . | Verifies formatting and runs ESLint across all source files. |
Environment Setup
The relevant lines inContactSection.svelte look like this:
.env file in the project root (add it to .gitignore) with the following keys:
ContactSection.svelte to read from the environment at runtime: