Skip to content

Latest commit

Β 

History

History
458 lines (332 loc) Β· 11.7 KB

File metadata and controls

458 lines (332 loc) Β· 11.7 KB

πŸ“š Acadly Platform - Master Documentation Index

Complete documentation reference for developers, designers, and project managers


πŸ“– Documentation Files Overview

🎯 Start Here

Document Purpose Best For
README.md Project overview & quick start Getting started quickly
WEBSITE_GUIDE.md Comprehensive platform guide Understanding full system
BACKEND_SETUP.md Backend API & server configuration Backend developers
FRONTEND_ARCHITECTURE.md Frontend structure & components Frontend developers
PDF-Hub-Frontend/README.md PDF library documentation PDF feature developers

πŸ—οΈ Architecture & Design

System Architecture

Read First: WEBSITE_GUIDE.md - Architecture Section

Then Read:

Data Flow

User Input (Frontend)
    ↓
API Request (HTTP/REST)
    ↓
Express Server (Backend)
    ↓
Database Query (MySQL/MongoDB)
    ↓
Data Processing
    ↓
Response (JSON)
    ↓
Frontend Rendering
    ↓
User Display

🎨 Frontend Documentation

Pages & Components

Main Landing Pages:

Feature Modules:

See: FRONTEND_ARCHITECTURE.md

Frontend Technologies

  • HTML5 - Semantic markup
  • Vanilla JavaScript - ES6+ no frameworks
  • Tailwind CSS - Utility-first styling
  • Dark Mode - Theme switching
  • Responsive Design - Mobile-first

πŸ”Œ Backend API Documentation

API Routes

Video Module:

GET    /api/videos              # List all videos
GET    /api/videos/:id          # Video details
GET    /api/videos/:id/stream   # Stream video (range request)
POST   /api/videos              # Upload (admin)
DELETE /api/videos/:id          # Delete (admin)

Progress Tracking:

GET    /api/progress/:userId    # User progress
POST   /api/progress            # Log interaction

Dashboard:

GET    /api/dashboard           # User dashboard
GET    /api/dashboard/stats     # User statistics

PDF Library:

GET    /api/pdfs                # List PDFs
GET    /api/pdfs/:id/stream     # Stream PDF
POST   /api/pdfs                # Upload

See: WEBSITE_GUIDE.md - Backend API Section


πŸ’Ύ Database Documentation

Database Setup

Main Database: MySQL

Schema Files:

Sample Data:

Key Tables

Table Purpose Records
users User accounts N/A
videos Video metadata 20+ samples
progress User progress Auto-generated
user_profiles User data Auto-created
pdfs PDF documents On-demand
quizzes Quiz questions 50+ samples
blogs Blog posts 15+ samples
3d_models 3D models 10+ samples

See: DATABASE_DESIGN_GUIDE.md


πŸ“ Feature Documentation

Videos & Learning

File Management

Real-Time Features


πŸš€ Deployment & DevOps

Docker

Files:

Commands:

# Build and run
docker-compose up -d

# View logs
docker-compose logs -f

# Stop services
docker-compose down

Installation & Setup

See: WEBSITE_GUIDE.md - Quick Start Section

Steps:

  1. Clone repository
  2. Install Node dependencies
  3. Create .env file
  4. Setup MySQL database
  5. Run Backend/setup-db.js
  6. Start npm start

πŸ” Security & Configuration

Environment Configuration

File: .env (create from .env.example)

Key Variables:

DB_HOST=localhost
DB_USER=root
DB_PASSWORD=***
DB_NAME=acadly_db
JWT_SECRET=***
PORT=3000

See: WEBSITE_GUIDE.md - Environment Variables

Security Guidelines

See: SECURITY.md

  • Authentication best practices
  • Data protection
  • Password hashing
  • API security
  • CORS configuration

πŸ§ͺ Testing & Verification

Test Verification

Reports:

Quick Reference

See: QUICK_REFERENCE.md

  • Common commands
  • File locations
  • Troubleshooting tips
  • Quick fixes

πŸ“š Additional Resources

Project Documentation

File Contains
CODE_OF_CONDUCT.md Community guidelines
contributing.md Contribution process
LICENSE MIT License

Technical References

File Topic
TECHNICAL_SUMMARY.md Technical overview
VISUAL_REFERENCE.md UI/UX reference
WEBSITE_GUIDE.md Complete platform guide

Setup Guides

File Purpose
MONGODB_SETUP.md MongoDB installation
QUICK_START_LIVE_TRACKING.md Live tracking setup
QUICK_START_VIDEO_UPLOAD.md Video upload configuration

πŸ“Š Document Map

By Role

For Frontend Developers:

  1. Read: FRONTEND_ARCHITECTURE.md
  2. Code: Frontend/ files
  3. Reference: VISUAL_REFERENCE.md

For Backend Developers:

  1. Read: Backend/README.md
  2. Code: Backend/routes/ files
  3. Reference: DATABASE_DESIGN_GUIDE.md

For Full-Stack Setup:

  1. Read: README.md
  2. Follow: WEBSITE_GUIDE.md - Quick Start
  3. Verify: VERIFICATION_CHECKLIST.md

For DevOps/Deployment:

  1. Read: Dockerfile
  2. Use: docker-compose.yml
  3. See: WEBSITE_GUIDE.md - Deployment

For Database Work:

  1. Study: DATABASE_DESIGN_GUIDE.md
  2. Use: DataBase/schema.sql
  3. Reference: WEBSITE_GUIDE.md - Database

🎯 Common Tasks

I want to...

...add a new video module

...create a new frontend page

...modify the database

...deploy to production

...troubleshoot an issue


πŸ”„ Information Flow

START HERE
    ↓
[README.md] ← Quick overview
    ↓
CHOOSE YOUR PATH
    β”œβ†’ Frontend Dev? β†’ [FRONTEND_ARCHITECTURE.md]
    β”œβ†’ Backend Dev? β†’ [Backend/README.md]
    β”œβ†’ DevOps? β†’ [Dockerfile, docker-compose.yml]
    β””β†’ Full Setup? β†’ [WEBSITE_GUIDE.md]
    ↓
[DATABASE_DESIGN_GUIDE.md] ← Understand data
    ↓
[VERIFICATION_CHECKLIST.md] ← Test everything
    ↓
[WEBSITE_GUIDE.md] ← Reference guide
    ↓
CODE & BUILD βœ…

πŸ“ž Getting Help

Documentation Structure

Level 1 (Quick Start):

  • README.md (2-3 min read)
  • QUICK_REFERENCE.md (reference)

Level 2 (Understanding):

  • WEBSITE_GUIDE.md (comprehensive)
  • FRONTEND_ARCHITECTURE.md (frontend deep-dive)
  • Backend/README.md (backend deep-dive)

Level 3 (Implementation):

  • Individual feature docs (VIDEO_UPLOAD_GUIDE.md, etc.)
  • Source code files with inline comments
  • Database schema documentation

Support

  • πŸ“§ Email: support@acadly.com
  • πŸ’¬ Discord: [Join Community]
  • πŸ› Issues: GitHub Issues
  • πŸ“– Wiki: [Project Wiki]

πŸŽ“ Learning Path

New Team Members

Week 1: Fundamentals

  1. Read README.md
  2. Read WEBSITE_GUIDE.md
  3. Run local setup (follow QUICK_START)
  4. Explore codebase

Week 2: Your Specialization

  • Frontend: Study FRONTEND_ARCHITECTURE.md + Frontend files
  • Backend: Study Backend/README.md + API routes
  • DevOps: Study docker files + deployment guide

Week 3: Feature Development

  • Pick a feature from WEBSITE_GUIDE.md
  • Study relevant documentation
  • Implement & test

Week 4+: Contribution

  • Create new features
  • Fix issues
  • Review PRs

πŸ“ˆ Document Maintenance

Last Updated: April 2024
Maintained By: Acadly Development Team
Version: 2.0

Contributing to Docs:

  1. Update relevant .md file
  2. Update this index if needed
  3. Commit with clear message
  4. Create PR for review

πŸ“„ Quick Links

Essential Files

Database Files

Frontend Files

Backend Files


For the most current information, always check the specific documentation file for your task.

Happy Coding! πŸš€