Git Product home page Git Product logo

courselit-dev's Introduction

Website | Getting started | Documentation

Status Chat Downloads Last commit Lgtm License

Introduction

CourseLit is a content management system (aka CMS) for starting your own online course website. It is designed keeping educators in mind. Consider it an open-source alternative to those paid tutoring sites.

It comes pre-equipped with all the basic tools you'd require to efficiently run and administer your online teaching business. Features include course authoring, student management, payment processing (via Stripe), website customization and analytics (very limited as of now).

Check out this live example to see what you can build with CourseLit. Click here.

Screenshot

courselit cms screenshot

Getting Started

To install CourseLit on your cloud server, please follow our official guide.

Development

The project is organised as a mono-repo. It uses Lerna for managing the mono-repo. You need to run both backend and frontend servers, located in packages/api and packages/app respectively, in order to run the portal in its entirety.

We recommend using Visual Studio Code for development as it allows you to develop your code in isolation inside a container using the Remote - Containers extension. Install both the editor and the extension.

Once you have this setup, follow these steps.

  1. Add the following entries to your operating system's host file. These are required for multitenancy.
127.0.0.1       domain1.localsite.com
127.0.0.1       domain2.localsite.com
127.0.0.1       localsite.com
  1. Press Ctrl + Shift + P to open the command palette of Visual Studio Code, type in "Remote-Containers: Open Workspace in Container" and press enter after selecting it.

  2. Once the code opens up, open two terminal windows in your Visual Studio Code and type in the following commands to start the backend and frontend servers respectively.

  • yarn lerna run dev --scope=@courselit/api --stream
  • yarn lerna run dev --scope=@courselit/app --stream

The above commands are also exported as bash aliases, so you can simply type api and app in separate terminal windows to run backend and frontend servers respectively.

  1. Inside the development container, open up a terminal window and type the following commands in sequence.
mongo
use app
var subscriptionExpiresAt = new Date()
subscriptionExpiresAt.setDate(subscriptionExpiresAt.getDate() + 90)

db.domains.insert({ name: "domain1", deleted: false, email: "[email protected]" })
db.subscribers.insert({ email: "[email protected]", subscriptionEndsAfter: subscriptionExpiresAt})

db.domains.insert({ name: "domain2", deleted: false, email: "[email protected]" })
db.subscribers.insert({ email: "[email protected]", subscriptionEndsAfter: subscriptionExpiresAt})

This will enable the invidual sites listed in step 1 with subscriptions valid for 90 days.

  1. Visit domain1.localsite.com to see CourseLit in action.

Writing Your Own Widget

You can add additional functionality to your application via building your own widgets. Have a look at this document.

Environment variables.

Have a look at the docker-compose.yml file to know what all environment variables are available for you to tweak.

courselit-dev's People

Contributors

dependabot[bot] avatar rajat1saxena avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.