Skip to content

Quickstart: self-host

Run the engine with Docker, add a course folder, and check a lesson's exercise.

Applies to Engine
View as Markdown
On this page
  1. Start the engine
  2. Add a course
  3. Take a lesson

At the end your own engine serves a course, and a learner’s exercise is checked by it.

  1. Start the engine

    Copy the compose.yaml from Docker, set a root token and how people sign in, then:

    Terminal
    docker compose up -d
    curl http://localhost:8097/v1/health
    You should see
    {"status":"ok"}
  2. Add a course

    A course is a folder of lesson files (The lesson format). Check it and upload it:

    Terminal
    npx @sypnia/learn login --server http://localhost:8097
    npx @sypnia/learn lint ./courses/team-onboarding
    npx @sypnia/learn courses add ./courses/team-onboarding
    You should see
    team-onboarding: 6 lessons, 0 problems. Published as version 1.
  3. Take a lesson

    In the repository of a project:

    Terminal
    npx @sypnia/learn start first-case
    npx @sypnia/learn check
    You should see
    Each check with ✓ or ✗ and what to fix.

Configure the runner that checks exercises before real learners use it: Configuration.

  1. Start the engine
  2. Add a course
  3. Take a lesson

    Search pages, sections and terms