C++ framework for building web applications
Cusend (C plUS plUS back-END) is a lightweight C++ library for building Web APIs. The idea is inspired by crow and the API style is inspired by express.
#include <Cusend/Application.h>
void helloRoute(csd::Request& req, csd::Response& res) {
csd::ResponseFactory::text(res, "Hello World!");
}
int main(int argc, char* argv[]) {
csd::Application app;
app.route(csd::Methods::Get, "/hello", helloRoute);
app.listen(3000);
return 0;
}
Browsing to localhost:3000/hello in your favourite browser will show “Hello World!” text.
Contributions are welcomed. If you found a bug or want to add a feature - open an issue. You can also create a pull request which fixes the bug or adds the feature respectively. Please, try to follow same code style as in the whole project. Use express API docs for reference.
MIT
see LICENSE file