A modern, full-stack Student Management System using C++ as the backend and HTML/CSS/JS as the frontend.
- Authentication: Admin login (admin/admin123).
- Dashboard: Overview of student data.
- CRUD: Add, View, Update, Delete students.
- Search: Real-time search by ID or Name.
- Download: Export data as JSON or CSV.
- Storage: JSON file-based persistence.
backend/: C++ source code (main.cpp,server.cpp, etc.) and libraries.frontend/: HTML pages.assets/: CSS, JS, and Images.data/:students.jsonstorage file.build/: Computed executable.
- C++ Compiler: MinGW-w64 (g++) supporting C++17.
- PowerShell: For setup script.
-
Download Dependencies: Run the setup script to download
httplib.handjson.hpp../setup.ps1 -
Compile: Run the build script.
build.bat
-
Run: Execute the server.
build\server.exe
-
Access: Open your browser and navigate to:
http://localhost:8080/index.html(or just http://localhost:8080)
- Username:
admin - Password:
admin123
The backend uses cpp-httplib for handling HTTP requests and nlohmann/json for JSON parsing. Thread safety is ensured using mutexes for database operations.