4.1.1 • Published 2 years ago

strapi-plugin-masterclass v4.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Strapi plugin Masterclass

Turn your Strapi application into a full-featured Learning Management System and start selling courses.

Features

  • Upload lectures to Mux
  • Create categories and nested categories
  • Integrate with Payments plugin
  • Students are able to save their progress in each course, and resume at any time
  • And much more

Requirements

  • Strapi v4.x.x
  • Mux account
    • Signing Key ID
    • Base64-encoded Private Key
    • Access token ID
    • Secret Key

Installation

In the root of your strapi application, run the following command:

npm i strapi-plugin-masterclass

Configuring private keys

Once installed, go to settings, then Masterclass Plugin and fill in the fields under Uploads tab to set the credentials to upload videos to Mux.

Video uploads config

Creating orders and accepting payments are done through the Payments plugin. Therefore, in order to enable the API endpoints to sell courses, it is required to install the Payments plugin as well.

Setting up permissions

In order for the plugin to serve content, manage users and create and confirm orders, you must enable some endpoints in the Users & Permissions Pluginfor the Masterclass plugin.

For Authenticated users, enable the following:

From courses:

  • checkLecture
  • getClassesCompleted
  • getCourseDetails
  • getItemsPurchased
  • getMyLearning
  • getPlayAuth
  • resumeCourse

From orders:

  • confirm
  • create
  • find
  • findOne

Authenticated permissions

For Public users, enable the following:

From categories:

  • categoryTree
  • index
  • navigation
  • summary

From courses:

  • find
  • findOne
  • findSlugs
  • getCourseDetails

From uploads:

  • update

This last one is for Mux to notify through webhooks when a video has been successfully uploaded and is ready. This will require that you configure a webhook in the dashboard of Mux account pointing to https://your-strapi-app.com/api/masterclass/upload-status

Public permissions

Usage

Creating courses and uploading lectures is done through the Strapi Admin Dashboard.

Courses are organised in categoires, which can be nested.

The API endpoints provide a way to list categories and information on their courses, as well as authentication keys to play videos for students and also marking the lectures as seen to register their progress as they watch the videos.

Creating lectures

Go to the Masterclass plugin page, and there you will find two tabs: Courses and Lectures. Before creating a course, it is required to create some lectures.

Creating courses

Go to the Masterclass plugin page and there you will find a Create Course button. When you click on this button, a modal containing a form will open up. Fill in the fields to set the Course Title, Description

API

Sample client app

For an example of a project using the APIs available in this plugin, check out this Next JS project.

Demo: https://tutoruniversitario.netlify.app

Demo

Bug reports

If you find a bug or need support for using this plugin, open an issue at https://github.com/luisguve/strapi-plugin-masterclass

4.1.0

2 years ago

4.0.0

2 years ago

4.1.1

2 years ago

3.0.0

2 years ago

0.0.3

2 years ago

2.2.5

3 years ago

2.2.4

3 years ago

2.2.3

3 years ago

2.2.2

3 years ago

2.2.1

3 years ago

2.2.0

3 years ago

2.1.4

3 years ago

2.1.3

3 years ago

2.1.2

3 years ago

2.1.1

3 years ago

2.1.0

3 years ago

2.0.5

3 years ago

2.0.4

3 years ago

2.0.3

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago