Skip to content

About

Course37 for JavaScript: the API client, a ready-made student website for your own domain, and create-course37-app.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

Course37 for JavaScript

Run your Course37 student website on your own domain. Your courses, website pages, theme and student accounts come from your Course37 organization; the site's code is yours to change.

npx create-course37-app my-school-site

You get a complete Next.js site that looks like your Course37 site from the first minute:

  • home and custom pages;
  • course catalog and course pages;
  • sign-in, sign-up and password reset;
  • the student dashboard, video lessons and profile.

Then make it yours: every page and component is plain React you can edit.

Packages

Package What it is
create-course37-app Sets up a new student website: asks for your key, checks it, copies the starter.
@course37/sdk TypeScript client for the Course37 public API (/v1): catalog, pages, student sign-in, enrollments, lessons and progress. No dependencies. Use it on its own in any JavaScript app.
Starter site The Next.js website create-course37-app copies.
@course37/sections The website sections Course37 sites are made of, used by the starter. Published from Course37's main codebase.

Before you start

In Course37 admin → Integrations → Developer API:

  1. Create a publishable key (pk_live_…).
  2. Under Allowed websites, add the addresses your site runs on (for example http://localhost:3000 and https://learn.your-school.com).
  3. Set the student site to "Your own website" (Headless) so students can sign in and learn on your site.

Use the SDK on its own

import { createCourse37Client } from '@course37/sdk';

const course37 = createCourse37Client({ apiKey: 'pk_live_…' });
const { data: courses } = await course37.courses.list();

See the SDK README for student sign-in, sessions and every call.

Contributing

Issues and pull requests are welcome; see CONTRIBUTING.md. To report a security problem, follow SECURITY.md and don't open a public issue.

License

MIT

About

Course37 for JavaScript: the API client, a ready-made student website for your own domain, and create-course37-app.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages