Skip to content

About

E-Learning for online examination at Junior high school

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ“š Ruby on Rails & React E-Learning & CBT Platform

Ruby 3.3 Rails 8 React 19 Tailwind CSS v4 PostgreSQL Redis Spring Edition FastAPI Edition Laravel Edition License

๐Ÿ‡ฎ๐Ÿ‡ฉ Baca dalam Bahasa Indonesia

๐Ÿ’Ž Ruby on Rails 8 & React 19 Edition of the enterprise multi-tenant academic Learning Management System (LMS) and Computer Based Test (CBT) platform.

A full-featured, high-performance web-based E-Learning and Computer Based Test (CBT) platform engineered for managing modern academic learning activities between Admin, Teacher, and Student. Built with a decoupled cloud-ready architecture: Ruby on Rails 8 API mode, React 19, Vite, and Tailwind CSS v4, featuring stateless JWT authentication with admin impersonation, PostgreSQL 16 persistence, Redis cache, real-time candidate proctoring telemetry, and Excel batch processing.


โœจ Key Features

๐Ÿ‘จโ€๐Ÿ’ผ Admin Panel

Feature Description
Dashboard Real-time statistics overview: teachers, students, classrooms, subjects, CBT metrics
Teachers Full CRUD with automatic user account provisioning & NIP validation
Students CRUD + classroom filtering + ๐Ÿ“ฅ Excel Batch Import (.xlsx) + Exam Cards Print
Classrooms CRUD + homeroom teacher assignment + capacity & academic year management
Subjects CRUD + subject code + credit units + assigned teacher mapping
Announcements CRUD + multi-target broadcasting (All / Teacher / Student) + publish toggle
Impersonation Instant one-click login as teacher or student for administrative debugging
Security Stateless JWT tokens, BCrypt hashing, and role-based authorization

๐Ÿ‘จโ€๐Ÿซ Teacher Panel

Feature Description
Dashboard Teaching metrics, scheduled examinations, active assignments, and recent activity
Learning Materials CRUD + multi-type content (Document, Video, Text, Link, Audio) + student view tracking
Assignments CRUD + deadline dates + instructions + submission grading with feedback
CBT Examinations CRUD + duration timer + passing grade (KKM) + randomize questions/options + retry toggles
Question Builder Multiple Choice (A-E), True/False, Essay + points allocation + ๐Ÿ“ฅ Excel Import
Live Telemetry Monitor Real-time candidate status, question progress bar, and anti-cheat flag alerts
Exam Hall Tickets Print ready-to-use official CBT student candidate cards with NIS barcodes

๐Ÿ‘จโ€๐ŸŽ“ Student Panel โ€” Mobile-First Design

Feature Description
Home Dashboard Responsive mobile drawer, upcoming exams countdown, active assignments, announcements
Learning Modules Browse, read, and download structured course materials per enrolled subject
Assignment Hub View assignment instructions + file upload dropzone + feedback review
CBT Exam Room Fullscreen examination runner with countdown timer, anti-cheat detection, and auto-submit
Grades & GPA Summary Subject average breakdown, progress bars, and passing grade pass/fail status

๐Ÿ–ฅ๏ธ CBT Exam System Workflow

Exam List โ†’ Confirmation & Instructions โ†’ Secure Exam Runner
                                           โ”œโ”€โ”€ โฑ๏ธ Synchronized Timer (auto-submit on expiry)
                                           โ”œโ”€โ”€ ๐Ÿ”’ Anti-Cheat Proctoring (fullscreen & tab change alerts)
                                           โ”œโ”€โ”€ ๐Ÿ“ Color-Coded Question Palette (answered / remaining)
                                           โ”œโ”€โ”€ ๐Ÿ’พ Instant Auto-Save (on every option selection)
                                           โ””โ”€โ”€ ๐Ÿ“Š Real-Time Proctor Telemetry (Live status push to teacher)

๐Ÿ“ธ Screenshots

๐Ÿ” Login Page

Login Page

๐Ÿ‘จโ€๐Ÿ’ผ Admin Panel

Dashboard Teachers Management
Admin Dashboard Teachers
Students Management Classrooms Management
Students Classrooms
Subjects Management Announcements
Subjects Announcements

๐Ÿ‘จโ€๐Ÿซ Teacher Panel

Dashboard Learning Materials
Teacher Dashboard Materials
Assignments Management CBT Examinations
Assignments Exams
Question Builder & Bank
Question Bank

๐Ÿ‘จโ€๐ŸŽ“ Student Panel (Mobile-First Design)

Home Dashboard Learning Materials Assignments Hub
Student Dashboard Materials Assignments
Examination Room Grades & Report Card
Student Exams Student Grades

๐Ÿ› ๏ธ Tech Stack

Layer Technology
Backend Core Ruby 3.3+, Ruby on Rails 8.0 (API Mode)
Security & Auth BCrypt, JWT (stateless tokens), Role-based Access Control, Impersonation Engine
Persistence PostgreSQL 16, Active Record, Database Migrations
Cache & Realtime Redis 7, ActionCable / Redis Telemetry PubSub
Batch Processing Roo (.xlsx, .xls, .csv batch parser for Students & Question Banks)
Frontend Core React 19, TypeScript 5+, Vite 6
Styling Tailwind CSS v4 (Native CSS engine with @tailwindcss/vite)
State Management Zustand 5, Axios with JWT interceptors
Testing RSpec (rspec-rails), FactoryBot, DatabaseCleaner, Oxlint
Deployment & CI Docker Compose, Multi-stage Dockerfiles, GitHub Actions CI/CD

๐Ÿš€ Quick Start with Docker Compose

Ensure Docker and Docker Compose are installed on your machine.

# 1. Clone repository
git clone https://github.com/mfarim/ruby-rails-elearning-react.git
cd ruby-rails-elearning-react

# 2. Copy environment file
cp .env.example .env

# 3. Start all services (Postgres, Redis, Rails Backend, React Frontend)
docker compose up -d --build

# 4. View logs
docker compose logs -f backend

Once up, access the applications:


๐Ÿ’ป Local Development Setup

Backend (Ruby on Rails 8)

cd backend

# Install dependencies
bundle install

# Prepare database and seed demo data
bin/rails db:create db:migrate db:seed

# Run RSpec test suite
bundle exec rspec

# Start Puma server on port 8000
PORT=8000 bin/rails server

Frontend (React 19 + Vite)

cd frontend

# Install dependencies
npm install

# Run linter
npm run lint

# Start Vite dev server on port 3000
npm run dev

๐Ÿ”‘ Demo Credentials

Role Email Password
Admin admin@elearning.test password123
Teacher teacher@elearning.test password123
Student student@elearning.test password123

๐Ÿ”„ CI/CD GitHub Actions

This repository includes continuous integration workflows:

  1. Backend CI (.github/workflows/backend-ci.yml):
    • Runs on push & PR to main for backend/**
    • Spawns PostgreSQL 16 & Redis 7 service containers
    • Sets up Ruby 3.3 with Bundler caching
    • Executes database creation, migrations, and seed verification
    • Runs RSpec automated test suite and RuboCop static analysis
  2. Frontend CI (.github/workflows/frontend-ci.yml):
    • Runs on push & PR to main for frontend/**
    • Sets up Node.js 20 with npm caching
    • Executes npm ci, oxlint linting, and production Vite TypeScript build

๐Ÿ“„ License

This project is licensed under the MIT License.

About

E-Learning for online examination at Junior high school

Topics

Resources

Stars

4 stars

Watchers

0 watching

Forks

Contributors

Languages