Complete full-stack Educational E-Learning Platform built with Angular 17+ and ASP.NET Core 8.
Client β Angular Frontend β ASP.NET Core API β SQL Server DB β Bunny Storage/CDN
LMS/
βββ backend/ # ASP.NET Core 8 Web API
β βββ LMS.API/ # Controllers, Program.cs
β βββ LMS.Application/ # Business Logic, DTOs, Services
β βββ LMS.Domain/ # Entities, Enums
β βββ LMS.Infrastructure/ # Data Access, External Services
βββ src/ # Angular 17+ Frontend
βββ app/
βββ core/ # Guards, Interceptors, Services
βββ features/ # Feature modules
βββ shared/ # Shared components
-
Navigate to backend directory
cd backend -
Update connection string in
LMS.API/appsettings.json -
Install EF Core tools (if not installed)
dotnet tool install --global dotnet-ef
-
Create and apply migrations
dotnet ef migrations add InitialCreate --project LMS.Infrastructure --startup-project LMS.API dotnet ef database update --project LMS.Infrastructure --startup-project LMS.API
-
Run the API
cd LMS.API dotnet runAPI will be available at:
- HTTP:
http://localhost:5000 - HTTPS:
https://localhost:5001 - Swagger:
https://localhost:5001/swagger - Hangfire:
https://localhost:5001/hangfire
- HTTP:
-
Install dependencies
npm install
-
Update API endpoint in
src/app/core/constants/api-endpoints.ts:export const API_BASE_URL = 'https://localhost:5001/api';
-
Run the frontend
npm start
Frontend will be available at
http://localhost:4200
Admin Account:
- Email:
admin@lms.com - Password:
Admin@123
- Clean Architecture (API, Application, Domain, Infrastructure)
- JWT Authentication with Role-based Authorization
- Student Registration with Document Upload
- OTP Verification System
- Account Status Management (Pending/Active/Blocked)
- Support Module (Approve/Reject Users)
- EF Core with SQL Server
- Hangfire for Background Jobs
- Swagger/OpenAPI Documentation
- Angular 17+ Standalone Components
- Angular Material UI
- JWT Token Management
- Auth Guards (AuthGuard, RoleGuard)
- HTTP Interceptors
- Auth Module (Login, Signup, OTP Verification)
-
Student Registration
- Student signs up with personal + academic data
- Uploads identity document
- Account status: Pending
-
Support Review
- Support reviews pending users
- Can approve or reject with reason
-
OTP Activation (if approved)
- System generates 6-digit OTP
- OTP expires in 10 minutes
- Student verifies OTP
- Account status: Pending β Active
-
Login
- Active users can login
- JWT token returned
- Role-based routing
- Student: Browse courses, enroll, learn, take exams
- Parent: Read-only access to student reports
- Teacher: Create courses, manage lessons, monitor students
- Support: Review and approve/reject users
- Admin: Full system management
POST /api/auth/register- Student registrationPOST /api/auth/login- LoginPOST /api/auth/verify-otp- Verify OTPPOST /api/auth/request-otp/{userId}- Request OTPPOST /api/auth/logout- Logout
GET /api/support/pending-users- Get pending usersGET /api/support/user/{userId}- Get user detailsPOST /api/support/approve/{userId}- Approve userPOST /api/support/reject/{userId}- Reject userPOST /api/support/unblock/{userId}- Unblock userGET /api/support/whatsapp-link/{userId}- Get WhatsApp link
{
"ConnectionStrings": {
"DefaultConnection": "Server=(localdb)\\mssqllocaldb;Database=LMSDb;..."
},
"JwtSettings": {
"SecretKey": "YourSecretKey...",
"Issuer": "LMS",
"Audience": "LMS-Users",
"ExpirationMinutes": 60
},
"BunnyNet": {
"StorageApiKey": "YOUR_KEY",
"CdnApiKey": "YOUR_KEY",
...
},
"Fawry": {
"MerchantCode": "YOUR_CODE",
"SecurityKey": "YOUR_KEY",
...
}
}Update src/app/core/constants/api-endpoints.ts:
export const API_BASE_URL = 'https://localhost:5001/api';- ASP.NET Core 8
- Entity Framework Core 8
- Microsoft.AspNetCore.Identity
- JWT Bearer Authentication
- Hangfire
- Swashbuckle (Swagger)
- Angular 17+
- Angular Material
- RxJS
- HLS.js (for video playback)
See PROJECT_STATUS.md for detailed status of:
- Remaining API controllers
- Frontend modules (Student, Teacher, Support, Admin dashboards)
- Video streaming (Bunny.net)
- Payment integration (Fawry)
- Background jobs
- Security features
- Backend README:
backend/README.md - Project Status:
PROJECT_STATUS.md - API Documentation: Available at
/swaggerwhen running
cd backend/LMS.API
dotnet watch runnpm start
# or
ng serve- Change default JWT secret key in production
- Change default admin password
- Enable HTTPS in production
- Implement rate limiting
- Add request logging and audit trails
- Secure file uploads
- Implement proper CORS policies
For issues and questions, refer to:
- Backend documentation:
backend/README.md - Project status:
PROJECT_STATUS.md
This project is part of a comprehensive LMS solution.
Built with β€οΈ using Angular 17+ and ASP.NET Core 8