Prerequisites
- Node.js 18 or later — nodejs.org
- npm — ships with Node.js
Installation
Create the environment file
Create a You can find both values in your Supabase project under Settings → API.
.env.local file in the project root:Cloud sync and authentication require these variables. The app works fully without them — all data is stored in localStorage and the EFA API is called directly.
Build
To produce a production build:dist/. You can preview the built output locally using:
Environment variables
| Variable | Required | Description |
|---|---|---|
VITE_SUPABASE_URL | No | Your Supabase project URL |
VITE_SUPABASE_ANON_KEY | No | Your Supabase anon (public) key |
VITE_ to be accessible in client code. Variables without this prefix are not exposed to the browser.
Vite configuration
The Vite config (vite.config.ts) sets up:
- React plugin —
@vitejs/plugin-reactfor JSX and Fast Refresh - Tailwind plugin —
@tailwindcss/vitefor CSS processing - Path alias —
@maps to./srcfor cleaner imports - Asset types —
.svgand.csvfiles are handled as static assets - Network host —
server.host: trueexposes the dev server on all interfaces for local network testing
Recommended editor setup
- VS Code with the ESLint and Tailwind CSS IntelliSense extensions
- TypeScript support is built-in via Vite’s React plugin
Project structure
Where to find components, services, and styles.
Deployment
Deploy SmartMove to Vercel.