Modern, open-source Learning Management System (LMS) designed for online course delivery, digital product distribution, interactive video learning, and student community management.
Overview • Live Demo • Screenshots • Architecture • Install & Configure • How to Use • Create & Customize • Testing • License
Force Structurée LMS unifies an optimized public storefront, an immersive student learning experience, an exhaustive administration dashboard, digital curriculum management, integrated billing/checkout, and asynchronous worker queues for automated email delivery and sequenced learning journeys.
Flow across instructor dashboard analytics, student interactive video player with curriculum sidebar, and visual page block builder.
Instructor & Admin Analytics Dashboard
|
|
Student Course Player & Curriculum Sidebar
|
Modular Visual Page Block Builder
|
The repository is structured as a high-performance monorepo managed with pnpm:
flowchart TD
subgraph Client_Applications["Applications (apps/)"]
Web["Next.js Web Portal (apps/web) - React 19 / App Router / Tailwind"]
Worker["Queue Service (apps/queue) - Background Workers / Drip / Emails"]
Docs["Documentation Portal (apps/docs-new) - Fumadocs / Guides & API Reference"]
Demo["Offline Interactive Showcase (demo/) - Dashboard / Video Player / Builder"]
end
subgraph Core_Monorepo["Shared Packages (packages/)"]
CommonModels["Shared Packages: common-models and orm-models - Domain Schemas & Mongoose"]
CommonLogic["Business Logic: common-logic - Resolvers / Permissions / Auth"]
UI_Library["Design System: components-library - Primitives / Themes / Dialogs"]
PageBlocks["Modular Page Builder: page-blocks and page-primitives"]
Editors["Content Authoring: text-editor and email-editor"]
Utils["Utilities: utils - Sanitization & Query Builders"]
end
subgraph Data_Infra["Data & Infrastructure"]
MongoDB[("MongoDB Database - Courses / Users / Purchases")]
QueueBroker["Redis / In-Memory Worker Queues"]
Caddy["Caddy Reverse Proxy - Auto TLS / HTTPS"]
end
Web --> CommonLogic
Web --> CommonModels
Web --> UI_Library
Web --> PageBlocks
Web --> Editors
Worker --> CommonLogic
Worker --> CommonModels
CommonLogic --> MongoDB
Worker --> QueueBroker
Caddy --> Web
Caddy --> Worker
apps/web: Main Next.js application (App Router, React 19, Tailwind CSS). Includes the learner portal, admin dashboard, GraphQL API, and REST/OpenAPI endpoints.apps/queue: Background worker service handling asynchronous tasks (automated email sequences, drip content release, notifications, and scheduled background jobs).apps/docs-new: Modern documentation website powered by Next.js and Fumadocs.demo/: Offline interactive demo showcase featuring the administration dashboard, course player, and page block builder.
packages/common-models&packages/orm-models: Domain data models and MongoDB persistence schemas.packages/common-logic: Shared business logic, permission rules, and resolvers.packages/components-library&packages/page-primitives: Design system and reusable UI components.packages/page-blocks: Dynamic building blocks for page layout customization (hero, syllabus, pricing, FAQ).packages/text-editor&packages/email-editor: Rich-text and email template editors.packages/utils: Cross-cutting utilities (data formatting, security sanitization, HTTP query builders).
- Production-ready Docker Compose orchestration featuring Caddy reverse proxy (automatic TLS/HTTPS), MongoDB database service, and maintenance automation scripts.
- Node.js (v20 or v22+ LTS recommended)
- pnpm (v10+ recommended)
- MongoDB (local daemon or MongoDB Atlas URI)
git clone https://github.com/Emincanozen/force-structuree-lms.git
cd force-structuree-lmspnpm installpnpm --filter './packages/**' -r run build-
Web Application Environment:
cp apps/web/.env.example apps/web/.env
Key environment variables:
DB_CONNECTION_STRING: MongoDB connection URI (e.g.mongodb://localhost:27017/courselit)AUTH_SECRET: Random 32+ character authentication secretSUPER_ADMIN_EMAIL: Email initialized as the primary administratorQUEUE_SERVER: URL of the queue background service (http://localhost:4000)
-
Queue Background Worker Environment:
cp apps/queue/.env.example apps/queue/.env
-
Start the Web Application (Next.js):
pnpm --filter @courselit/web dev
The application will start on
http://localhost:3000. -
Start the Background Queue Worker:
pnpm --filter @courselit/queue dev
The worker listens on
http://localhost:4000to process emails, drip schedules, and certificates. -
Running the Interactive Static Demo (Offline Preview): To preview the dashboard, course player, and page builder without spinning up MongoDB:
node ../serve.mjs demo 3112
Open
http://localhost:3112in your browser.
- Log into the administration dashboard at
/dashboard. - Navigate to Courses → New Course.
- Fill in the course details:
- Title & Subtitle: Displayed on sales pages and student cards.
- Pricing: Set free access, one-off purchase, or monthly subscription.
- Curriculum Builder: Add modules (sections) and individual lessons (Video, Audio, Rich Markdown, Quizzes, or File Downloads).
- Configure Drip Settings to release lessons on a scheduled interval (e.g., 1 module every 7 days).
- Toggle status to Published.
Force Structurée uses a modular page block architecture (packages/page-blocks):
-
Create a new block component: In
packages/page-blocks/src/blocks/my-custom-block.tsx:import React from 'react'; import type { BlockProps } from '@courselit/page-models'; export interface MyCustomBlockConfig { title: string; highlightText: string; } export const MyCustomBlock = ({ config }: BlockProps<MyCustomBlockConfig>) => { return ( <section className="py-16 bg-slate-50 border-y border-slate-200"> <div className="max-w-4xl mx-auto px-6 text-center"> <h2 className="text-3xl font-extrabold text-slate-900">{config.title}</h2> <p className="mt-3 text-indigo-600 font-semibold">{config.highlightText}</p> </div> </section> ); };
-
Register the block in the block registry: Add your block to
packages/page-blocks/src/registry.tswith its JSON schema and property controls. It will immediately be available in the visual page editor.
- Tailwind Tokens: Base styles, brand colors, and typography are configured in
apps/web/tailwind.config.ts. - Reusable Primitives: Buttons, inputs, dialogs, and layout shells are maintained in
packages/components-library.
# Run code linting across all packages
pnpm lint
# Format code with Prettier
pnpm prettier
# Run automated unit and integration tests
pnpm testThis project is open-source software licensed under the GNU Affero General Public License v3.0 (AGPL-3.0). If you run a modified version as a network service, the AGPL requires you to offer its source code to the users of that service.
Force Structurée LMS is built on the open-source CourseLit platform (the @courselit/* packages), which is itself released under the AGPL-3.0.



