Backend for the Delta project, implemented in C++ using Qt and custom HTTP routing.
This repository provides the server-side logic and endpoints consumed by the frontend.
⚠️ This project is designed to run on port 8080.
This backend handles:
- User authentication (registration, login) via JWT
- RESTful API routes for modules like exams, calendar, forum, problems, dashboard, visualizations, rankings, etc.
- SQLite database operations
- Consistent API responses
/
├── CMakeLists.txt # Build configuration
├── main.cpp # Application entry point
├── api.cpp / api.h # Core HTTP server and routing
├── \*\_routes.cpp / \*\_routes.h # Routes for each API module
├── jwt\_helper.cpp / .h # JWT creation and validation
├── database\_manager.cpp / .h # Database abstraction layer
├── response\_utils.cpp / .h # API response helpers
└── build/ # CMake build artifacts (ignored)
- Qt (6.x or 5.x) – Required for building the project
- CMake
- C++17 or later
Make sure Qt is installed and properly set up in your environment.
-
Clone the repo
git clone https://github.com/ignacioelizeche/Backend_Delta.git cd Backend_Delta -
Create build directory and run CMake
mkdir build && cd build cmake .. make
-
Run the server
./DeltaBackend
The server will start on: ➤
http://localhost:8080
POST /auth/register– Register userPOST /auth/login– Login and receive JWTGET /exams,POST /exams– Manage examsGET /calendar– Fetch calendar eventsGET /forum,POST /forum– Forum endpoints- And many more across routes: problems, dashboard, rankings, etc.
Explore the *_routes.cpp files for full API definitions.
You can define environment variables or config settings like:
PORT(default is 8080)