0.5.12-multitenant.0 • Published 3 years ago

@courselit/api v0.5.12-multitenant.0

Weekly downloads
64
License
MIT
Repository
-
Last release
3 years ago

Introduction

A headless CMS for hosting your own teaching courses. Features include course creation, student management, media management and website customisation. Learn more.

Getting started

Easily spin up a new CourseLit headless server using the following command.

export USER_CONTENT_DIRECTORY=local_directory_to_hold_user_data
export JWT_SECRET=string_of_your_choice
yarn start

# the server will be available at http://localhost/api

The above commands assume that you have a MongoDB server running on your local machine. If that is not the case, specify the DB_CONNECTION_STRING environment as well.

Additionally, you need to have imagemagick and ffmpeg softwares installed locally for media upload functionality to work.

Environment variables

USER_CONTENT_DIRECTORY

The CourseLit server needs a place to store user created content like media uploads. You can specify that location by setting this environment variable. Required parameter. No default value.

JWT_SECRET

A random string to use as a secret to sign the JWT tokens the API generates. Required parameter. No default value.

DB_CONNECTION_STRING

The connection string to a remote mongodb instance. Defaults to mongodb://localhost/app.

PORT

The port to run the server on. Defaults to 80.

API_PREFIX

This will make the server available at /<API_PREFIX> path. Defaults to /api.

JWT_EXPIRES_IN

The duration after while the generated JWT expires. For more information click this link. Defaults to 1d.

USE_WEBP If this is set to true, the app will convert the image being uploaded to WEBP format. The generated thumbnail will be a WEBP file as well.

WEBP_QUALITY The quality of output while converting images to WEBP format. Only applies when USE_WEBP is set to true. Defaults to 75.

Support

Come chat with us in our official Spectrum chat.

0.5.10

3 years ago

0.5.9

3 years ago

0.5.7

3 years ago

0.5.6

3 years ago

0.5.5

3 years ago

0.5.4

3 years ago

0.5.2

3 years ago

0.5.1

3 years ago

0.4.0

4 years ago

0.3.4

4 years ago

0.3.1

4 years ago

0.2.11

4 years ago

0.2.9

4 years ago

0.2.6

4 years ago

0.2.7-alpha.0

4 years ago

0.2.6-alpha.0

4 years ago

0.2.5

4 years ago

0.2.4

4 years ago

0.2.4-alpha.1

4 years ago

0.2.3

4 years ago

0.2.3-alpha.0

4 years ago

0.2.2

4 years ago

0.2.1

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago