Skip to content

Latest commit

 

History

History
97 lines (63 loc) · 3.04 KB

File metadata and controls

97 lines (63 loc) · 3.04 KB

GSK 23/6 – læringsplattform

Hjelper voksne (23+) som mangler seks fellesfag til GSK å stå til eksamen på første forsøk.

  • AI‑studierådgiver: ukeplan, frister, forslag til oppmelding
  • Videokurs per fag: mikro‑moduler med kapitler og quiz
  • Øvingshub: eksamenssett, timer‑modus, AI‑gjennomgang
  • Muntlig‑trener (beta): tale→tekst, rubric, konkrete forbedringer

Målgruppe: 23/6‑kandidater (privatister) og yrkesfag som bygger mot GSK. Se også ../plan.md for mer detaljer.

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

# from repo root
cd web
npm install
npm run dev -- --port 3001

Open http://localhost:3001 with your browser.

You can start editing the page by modifying src/app/page.tsx. The page auto-updates as you edit the file.

Project structure (web)

  • src/app/ App Router routes (pages, API)
  • src/lib/ shared libs (e.g. Prisma client)
  • prisma/schema.prisma database schema
  • src/generated/prisma generated Prisma Client (ignored by linter)

Environment variables

Create a .env file in web/ with at least:

# Postgres connection string (Supabase or local)
DATABASE_URL="postgresql://postgres:postgres@localhost:5432/gsk?schema=public"

# Stripe (placeholders)
STRIPE_SECRET_KEY="sk_test_..."
STRIPE_WEBHOOK_SECRET="whsec_..."

# Mux (placeholders)
MUX_TOKEN_ID=""
MUX_TOKEN_SECRET=""

# Auth (placeholders)
NEXTAUTH_SECRET=""
NEXTAUTH_URL="http://localhost:3001"

Tip: copy this template into .env and adjust values.

Database (Prisma)

  • Define models in prisma/schema.prisma
  • Generate client:
npx prisma generate
  • Run migrations (when a database is configured):
npx prisma migrate dev --name init

Health check endpoint (no DB required): GET /api/health returns { ok: true, db: false|true }.

Tech

  • Next.js 15 (App Router, TS, Tailwind)
  • Prisma + PostgreSQL (Supabase compatible)
  • ESLint (flat config)

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.