Tutorials
Getting Started
Clone Kredal, configure Supabase credentials, and run the app locally.
By the end of this tutorial you will have Kredal running locally against a Supabase project, able to sign up, create a company, and run a readiness assessment.
Prerequisites
- Node.js 20+ (developed on v24). Check with
node -v. - The Supabase CLI (
supabase -v). Install: supabase.com/docs/guides/cli. - A Supabase project. If you do not have one, follow Apply DB migrations first — it creates and migrates one.
1. Install dependencies
cd kredal-app
npm install2. Configure environment variables
Copy the example file and fill in your Supabase project's values:
cp .env.local.example .env.local.env.local needs three values (see Environment variables):
| Variable | Where to find it |
|---|---|
NEXT_PUBLIC_SUPABASE_URL | Supabase dashboard → Project Settings → API → Project URL |
NEXT_PUBLIC_SUPABASE_ANON_KEY | Same page → anon public key |
SUPABASE_SERVICE_ROLE_KEY | Same page → service_role secret key (server only) |
To pull these safely from the CLI without printing them, see Rotate Supabase keys.
.env.localis gitignored. Never commit it. Never prefix the service-role key withNEXT_PUBLIC_— that would leak it to the browser.
3. Run the dev server
npm run devOpen localhost:3000. You should see the landing page.
4. Walk the founder journey
- Click Get started and create an account.
- Create your first workspace (single company or consultant).
- Add a company with its trade license details.
- Upload documents against the checklist.
- Complete the readiness questionnaire (8 sections).
- Run the rejection-risk assessment — you get a score, risk flags, and fixes.
- Generate a report (founder readiness report or bank application pack).
Next steps
- Seed demo data to skip manual entry with a realistic example.
- Run the tests.
- Understand why the product exists.