Skip to content

Next.js (App Router) TypeScript app with Prisma/Postgres, Auth.js v5 + Resend magic links, DB-backed allowlist enforcement, admin dashboard with server actions, all public marketing pages, protected prototype pages, RHF+Zod forms, and API routes. Includes raw DICOM intake, de-identification after receipt, and prepaid card payout workflows.

Notifications You must be signed in to change notification settings

VerbaLearnTeam/Auron-Tomography-Intelligence-System-Website

Repository files navigation

Auron Intelligence (Prototype)

Single Next.js App Router application that combines the marketing site, invite-only prototype, and admin dashboard.

Prototype platform for research and evaluation. Not medical advice. Not for emergency use.

Quick start

npm install
cp .env.example .env
# edit .env
npx prisma migrate dev
npm run dev

Open http://localhost:3000.

Environment variables

See .env.example for the full list. Required for most functionality:

  • DATABASE_URL
  • AUTH_SECRET
  • AUTH_TRUST_HOST=true
  • AUTH_RESEND_KEY
  • EMAIL_FROM
  • ADMIN_API_KEY
  • APP_START_URL
  • UPLOAD_LINK_URL

Admin dashboard

Visit /admin and enter the ADMIN_API_KEY to access pending requests, invites, and allowlist management. Actions send approval/invite emails with a one-click start link when configured with Resend.

Auth and allowlist

  • Auth.js v5 with Resend magic links
  • Allowlist enforced in the server-side signIn callback
  • /api/allowlist/check prevents sending emails to non-allowlisted addresses

Production

Run migrations on deploy:

npx prisma migrate deploy

Railway deploy (quick)

  1. Create a Railway project from the GitHub repo.
  2. Add a PostgreSQL service.
  3. In the web service, set DATABASE_URL to the Postgres service DATABASE_URL variable.
  4. Add env vars: AUTH_SECRET, AUTH_TRUST_HOST=true, AUTH_RESEND_KEY, EMAIL_FROM, ADMIN_API_KEY, UPLOAD_LINK_URL, APP_START_URL.
  5. Pre-deploy command: npx prisma migrate deploy
  6. Build command: npx prisma generate && npm run build
  7. Start command: npm run start

Notes

  • Contribute scans flow accepts raw DICOM immediately and de-identifies after receipt.
  • If accepted for use, contributors receive a prepaid card delivered via email.

About

Next.js (App Router) TypeScript app with Prisma/Postgres, Auth.js v5 + Resend magic links, DB-backed allowlist enforcement, admin dashboard with server actions, all public marketing pages, protected prototype pages, RHF+Zod forms, and API routes. Includes raw DICOM intake, de-identification after receipt, and prepaid card payout workflows.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors