How seangnang/simple-website works
SimpleWebsite is an ASP.NET Core learning-management website. Its principal learner workflow is browsing courses, enrolling, accessing lessons, and recording lesson completion; the repository also includes instructor course authoring, administration, payments, reviews/comments, notifications, and email. The README is only a project title, so capabilities and relationships here are based on the source index and shown excerpts. EmailService contains conflicting merge-marker excerpts, so its exact delivery behavior is uncertain.
Main entry points: AppDbContext.cs Application database · NotificationService.cs Notifications · CourseController.cs Enrollment · PaymentController.cs Payment handling
Components 24
Course learning
- Course browsing
Controllers/CourseController.cs - Enrollment
Controllers/CourseController.cs - Lesson learning
Controllers/CourseController.cs - Lesson progress
Models/LessonProgress.cs - Payment handling
Controllers/PaymentController.cs
Course operations
- Instructor tools
Controllers/InstructorController.cs - Category management
Controllers/CategoryController.cs - Coupon management
Controllers/CouponController.cs - Administration
Controllers/AdminController.cs - Dashboard
Controllers/DashboardController.cs
Accounts and community
- Account management
Controllers/AccountController.cs - User profiles
Controllers/ProfileController.cs - Course reviews
Controllers/ReviewController.cs - Lesson comments
Controllers/CommentController.cs - Home pages
Controllers/HomeController.cs
Messaging
- Notifications
Services/NotificationService.cs - Notification access
Controllers/NotificationController.cs - Email service
Services/EmailService.cs - Email inbox
Controllers/EmailController.cs
Application data
- LMS entities
Models - Application database
Data/AppDbContext.cs - Stripe settings
Models/StripeSettings.cs
Other components
- Learner
- Instructor
Connections 30
- Learner → Course browsing: browses
- Learner → Enrollment: enrolls
- Learner → Lesson learning: studies
- Course browsing → Application database: queries
Controllers/CourseController.cs - Enrollment → Application database: saves enrollment
Controllers/CourseController.cs - Enrollment → Email service: sends email
Controllers/CourseController.cs - Enrollment → Notifications: notifies users
Controllers/CourseController.cs - Lesson learning → Application database: loads lessons
Controllers/CourseController.cs - Lesson learning → Lesson progress: records completion
Controllers/CourseController.cs - Lesson learning → Application database: saves progress
Controllers/CourseController.cs - Payment handling → Application database: reads and writes
Controllers/PaymentController.cs - Payment handling → Stripe settings: uses settings
Controllers/PaymentController.cs - Instructor → Instructor tools: manages courses
- Instructor tools → Application database: reads and writes
Controllers/InstructorController.cs - Category management → Application database: reads and writes
Controllers/CategoryController.cs - Coupon management → Application database: reads and writes
Controllers/CouponController.cs - Administration → Application database: queries
Controllers/AdminController.cs - Dashboard → Application database: queries
Controllers/DashboardController.cs - Account management → Application database: uses users
Controllers/AccountController.cs - Account management → Notifications: requests notifications
Controllers/AccountController.cs - User profiles → Application database: uses users
- Course reviews → Application database: reads and writes
Controllers/ReviewController.cs - Course reviews → Notifications: sends notifications
Controllers/ReviewController.cs - Lesson comments → Application database: reads and writes
Controllers/CommentController.cs - Lesson comments → Notifications: sends notifications
Controllers/CommentController.cs - Notification access → Notifications: loads notifications
Controllers/NotificationController.cs - Notifications → Application database: stores notifications
Services/NotificationService.cs - Email inbox → Application database: uses email logs
Controllers/EmailController.cs - Home pages → Application database: queries
Controllers/HomeController.cs - Application database → LMS entities: maps entities
Data/AppDbContext.cs