create-course-platform
v0.1.0
Published
Scaffold a new course site from koushikvikram/course-platform-template (Astro + Supabase + Vercel).
Downloads
203
Maintainers
Readme
create-course-platform
Scaffold a new course site from koushikvikram/course-platform-template — Astro SSR + Supabase + Vercel.
Usage
npm create course-platform@latest my-course
cd my-course/site && npm install && npm run devNon-interactive:
npm create course-platform@latest my-course -- \
--non-interactive \
--name="My Course" \
--short-name=myc \
--slug=my-courseWhat it does
- Fetches the template with
degit(no git history) intomy-course/. - Runs the template's
scripts/scaffold/init.mjsto writesite.config.ts,README.md, favicon, and copy the starter module.
All scaffolding logic lives in the template repo; this package is a thin wrapper, so it rarely changes.
Options
| Flag | Purpose |
|------|---------|
| --template=<owner/repo[#ref]> | Use a different/forked template (default: koushikvikram/course-platform-template) |
| -h, --help | Show help |
Flags after the directory are forwarded to init.mjs (--non-interactive, --name=, --short-name=, --slug=, --accent=, --username-domain=, --empty-content, …).
After scaffolding
- Run
docs/supabase/migrations/*.sqlin order on a new Supabase project. cp site/.env.example site/.envand fill inPUBLIC_SUPABASE_URL+PUBLIC_SUPABASE_ANON_KEY.- Replace
00_intro/with your curriculum.
License
MIT
