course-binder
v0.1.1
Published
a compiler for building online courses
Downloads
2
Readme
Binder
Binder is a compiler that bundles a set of videos into a course program. The compiler deploys the course to your Digital Ocean account via the Spaces API. You can then load and run the program using our native iOS or Android apps called Userland. Userland supports features such as progress tracking, offline caching and more coming soon. We want to make it easier to consume and complete online courses.
Install
npm install -g course-binder
Setup
Get an account on Digital Ocean
Create access tokens for Spaces API from the dev console
Set the Digital Ocean Space endpoint, key and secret in your environment:
DO_SPACE_ENDPOINT=https://nyc3.digitaloceanspaces.com
DO_SPACE_KEY=DO00CE96V9TKWYEXHA6W
DO_SPACE_SECRET=uAJYxWaawOPN6J6pQkavNhuYd7QQh/+VmOjI/NWv+HQ
Defining a Course
A course is specified in JSON. Videos are sourced off the local filesystem with path relative to spec file. Here is a sample with just one module and one video file:
{
"name": {
"bundle": "neuro-training",
"display": "The Positive Neuroplasticity Training"
},
"author": "Rick Hanson",
"version": "0.1.0",
"modules": {
"The Essence of Postiive Neuroplasticity": {
"Welcome and Introduction": {
"type": "video/mp4",
"path": "PNT Class 1, Part 1.mp4"
}
}
}
}
Deploying the Course
To compile the course and deploy to Digital Ocean:
binder path/to/mycourse.json
If there are no errors, the compiler will return a link to access the course material:
https://nyc3.digitaloceanspaces.com/<bundle name>/index.html
Example Courses
To test the compiler out, I built 3 courses I've taken in the past. The JSON specifications for these coureses are availalble in the examples directory. The video files are not here because the content is owned by the authors of the videos.
1. The Positive Neuroplasticity Training
This course allowed me to download offline copies of the videos in mp4 format so I could run my compiler directly on those files. Binder file.
2. Write of Passage
This course uses Wistia as it's learning management system (LMS). I was able to find a Wistia video downloader chrome extension and pull copies of the videos in mp4 format. Binder file.
3. Startup School Curriculum
The videos for this course are hosted on Youtube so I used pytube to dump each of the videos to mp4 format and ran them through the compiler. Binder file.