LMS Provider
To add a new lms provider head over to
src/services/course/providers
create a new provider with the name [provider].service.ts
Inside the file add the following code:
import { CourseInterface } from "@github20k/services/course/course.interface";
import { AbstractServicesService } from "@github20k/services/abstract.services.service";
import { number, object, string } from "yup";
export class ProviderService extends AbstractServicesService implements CourseInterface
{
// required environment variables
validation = object({
PARAM: string().required(),
PARAM: number().required()
});
providerName = "provider name";
async joinCourse(name: string, email: string) {
// code to add a person to the course
}
}
Make sure to add the new provider name also in env.check.ts