| Tool | Version | Purpose |
|---|---|---|
| fnm | 1.x | Node.js version manager |
| Node.js | 24.x LTS | JavaScript runtime |
| npm | 11.x | Package manager |
| Git | 2.x | Version control |
winget install Schniz.fnmNavigate to the project and run:
cd C:\repos\pedidos\pedidos-front
init.cmdRun this once per CMD session.
Add to your PowerShell profile (notepad $PROFILE):
fnm env --use-on-cd --shell powershell | Out-String | Invoke-ExpressionThis auto-activates the correct Node.js version when you cd into a project with .node-version.
If PowerShell blocks scripts, run once:
Set-ExecutionPolicy -Scope CurrentUser -ExecutionPolicy RemoteSigned
fnm install # Downloads the version from .node-version
fnm use # Activates it
# Verify
node --version # Should match .node-version
npm --versionnpm install| Command | Description |
|---|---|
npm run dev |
Start dev server (Vite) at localhost:5173 with hot reload |
npm run build |
Production build to dist/ |
npm run preview |
Serve dist/ locally to test build |
npm run lint |
Check code with ESLint |
npm run lint:fix |
Auto-fix ESLint issues |
npm run format |
Format with Prettier |
npm run format:check |
Check formatting without modifying |
Create .env in the project root:
VITE_API_URL=http://localhost:8000/api
VITE_STRICT_MODE=trueThe frontend expects the backend API at VITE_API_URL (default: http://localhost:8000/api).
To run the full stack locally:
- Start DynamoDB Local:
docker compose up -d(in pedidos-backend) - Seed data:
python seeds/seed.py(in pedidos-backend) - Start backend:
sam local start-api --port 8000 --host 0.0.0.0 --env-vars env.json --warm-containers eager(in pedidos-backend) - Start frontend:
npm run dev(in pedidos-front)
Configure VS Code to format on save for best results.