Synaplan
기업을 위한 오픈소스 AI 플랫폼
아직 감지된 업데이트가 없습니다. GitHub 릴리스가 나오면 여기에 보입니다.
메이커가 쓴 소개는 위의 한 줄이 전부입니다. 더 자세한 내용은 저장소 README에서 읽을 수 있습니다. 저장소 README ↗
README 전체를 불러오는 중입니다.
README 전문 보기 ↗This repository is a hybrid Next.js 16 application with two modules in one codebase:
This README is the single source of truth for local setup and production deployment.
npm install
npm run db:start # starts local Supabase, applies supabase/migrations, loads supabase/seed.sql
npx supabase status # copy "API URL" and "anon key" into .env.local (see .env.example)
npm run dev
Open http://localhost:3000 and use a demo shortcut on the login page.
Every demo account uses the password password123:
| Role | |
|---|---|
| Patient | [email protected] |
| Doctor | [email protected] |
| Admin | [email protected] |
| Lab | [email protected] |
| Pharmacy | [email protected] |
| Hotel guest | [email protected] (reservations AR-2391, AR-4530, AR-7812, last name Rao) |
| Hotel staff | [email protected] |
npm run db:reset rebuilds the local database from the migrations and seed.
supabase/migrations/ holds the whole schema, RLS policies, and database functions.supabase/seed.sql creates the demo accounts and sample data. Use it for local or demo projects only.handle_new_user trigger enforces this.
Other roles are assigned by an admin, who changes profiles.role.set_token_number trigger and the get_booked_times, get_queue, and allocate_room functions.
The browser never computes them from partial data.npm run lint
npm run typecheck
npm run build
npx supabase link --project-ref <ref> and npx supabase db push.
Optionally run supabase/seed.sql in the SQL editor to get the demo accounts.NEXT_PUBLIC_SUPABASE_URL and NEXT_PUBLIC_SUPABASE_ANON_KEY to that project's values.<domain>/callback as a redirect URL.Hospital module:
/patient/doctor/admin/lab/pharma/api/discharge/[appointmentId]Hospitality module:
//guest/staffproxy.ts.lib/supabase/middleware.ts using lib/auth/roles.ts./login.app/: pages, route groups, and API routescomponents/: shared UI and dashboard componentshooks/: custom hookslib/: Supabase clients, roles, validations, utilitiessupabase/: config, migrations, and demo seedtypes/: shared TypeScript types