Celeris is a backend technology built with C++. Inspired by the Latin word for "fast" or "rapid," Celeris provides a modern and efficient way to build backend APIs. It combines the power and speed of C++ with a clean, developer-friendly API design, similar to popular frameworks like FastAPI or Node.js.
To get started with Celeris, follow these steps:
Clone the Repository:
git clone https://github.com/Alazar42/Celeris.git
Build the Project:
cd Celeris
mkdir build && cd build
cmake ..
make
Celeris comes with pre-included dependencies like Boost and nlohmann JSON, so there’s no need to install them separately.
Here’s a basic example to set up a simple server using Celeris:
#include <celeris/celeris.hpp>
int main() {
// Create a Celeris server instance
Celeris app(8080, "127.0.0.1");
// Define a simple GET route
app.get("/hello", [](const Request& req, Response& res) {
nlohmann::json json_response = {{"message", "Hello, world!"}};
res.set_json(json_response);
});
// Define a POST route
app.post("/echo", [](const Request& req, Response& res) {
nlohmann::json json_request = nlohmann::json::parse(req.body);
res.set_json(json_request);
});
// Start the server
app.listen();
return 0;
}
Explanation:
/hello
) that responds with a JSON message. /echo
) that echoes the received JSON request back in the response. Celeris is actively developed, and we encourage contributions! Here’s how you can contribute:
git checkout -b feature-branch
We’re seeking collaborators to help expand Celeris, particularly for adding:
Celeris is licensed under the GNU General Public License. For more details, see the LICENSE file.
For questions, issues, or feature requests, please open an issue on GitHub or contact us at alazartesfaye42@gmail.com.