DirFast Docs
Quickstart
Run DirFast locally with Supabase and the Next.js development server.
DirFast Docs
Run DirFast locally with Supabase and the Next.js development server.
This guide takes you from a fresh checkout to a working local DirFast site.
Install the following tools before you begin.
Check the versions in a terminal.
node --version
yarn --version
git --version
supabase --version
docker --versionDocker must be running when you use the local Supabase stack.
Clone the private repository that contains your DirFast purchase or source access.
git clone https://github.com/<your-account>/<your-repository>.git
cd <your-repository>Install the dependencies with the Yarn version declared by the repository.
yarn installCopy the example file and add the local Supabase values.
cp .env.example .envOn Windows PowerShell, use the following command.
Copy-Item .env.example .envFor a local Supabase project, the URL and anon key are available from supabase status. Add the service role key as well because server-side admin operations use it.
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_SUPABASE_URL=http://127.0.0.1:54321
NEXT_PUBLIC_SUPABASE_ANON_KEY=<local-anon-key>
SUPABASE_SERVICE_ROLE_KEY=<local-service-role-key>The remaining integrations are optional while you are working through the local setup. See Environment variables when you are ready to enable payments, email, AI, analytics, or background jobs.
Start the local services and reset the database so the migrations and seed data are applied.
supabase start
supabase db reset
supabase statussupabase db reset is intended for a local database. It removes and recreates local data, so do not run it against a production project.
Start Next.js and open http://localhost:3000.
yarn devCreate an account from the registration page. The local Supabase configuration disables email confirmation by default, so you can continue directly to the site. The account initially has the USER role. Follow the Supabase admin setup to grant the ADMIN role before opening /admin.
yarn build
yarn start
yarn lint
yarn format
yarn typegen:supabaseRun yarn typegen:supabase after changing the database schema so the generated TypeScript types stay in sync.