This project leverages Remix SPA Mode and the Remix Vite Plugin to build your app as a Single-Page Application using Client Data for all of your data loads and mutations.
There are 3 ways to develop:
-
Mock Backend: Develop with a mock backend. Data is not saved anywhere. This is good for quickly adjusting frontend components or when the backend is not ready yet.
-
Local Supabase: Develop with a local Supabase instance. This is good for developing with isolated data.
-
Production Supabase: Develop with a production Supabase instance. For when you want to troubleshoot production issues or want to work with actual production data.
# Install dependencies
bun install
# Start Supabase (only when you want to develop with local Supabase)
bun supabase start
# Get the URLs for the local Supabase instance
bun supabase status
# Run schema migrations (we don’t use Supabase migrations for now and use Drizzle instead)
db/deploy.sh
# Start dev server
bun dev
- To develop with a mock backend, go to
http://mock.localhost:5173/
- To develop with a local Supabase instance, go to
http://localhost:5173/
- To develop with a production Supabase backend, go to
http://prod.localhost:5173/
# Build app to `build/client`
bun run build