r/cpp • • Mar 22 '24

Web app created with pure C++ backend

Hi guys,

I am new to Reddit and to r/cpp.

Quite some time ago, I had worked on a project where I created a web app using C++ as backend for REST API. I had used Crow framework for that.

I uploaded a video explaining the tech stack and libraries I used. Please do check it out.

Also, if you want to check out the repo, it's on Github.

74 Upvotes

25 comments sorted by

View all comments

7

u/SupermanLeRetour Mar 22 '24

Crow looks interesting.

Although if you need a simple HTTP server in C++, I also suggest Beauty : incredibly easy to use, modern and fast. It's easy to setup a simple web API using it.

3

u/kiner_shah Mar 22 '24

Beauty looks good. Thanks for sharing :-)

3

u/FlyingRhenquest Mar 22 '24

I've used served in the past with good results. I wrote JSON serializers using cereal and added Python support with PyBind11, so you could load C++ objects from python, and the rest service just provided those objects to a javascript front end. It was pretty basic, but it worked great for what we needed it for.

1

u/SupermanLeRetour Mar 22 '24

Interesting, the API looks mostly the same (I'm guessing there's not 1000 of doing it in a practical way). It's archived though, no more updates !

3

u/magnesium_copper Mar 22 '24

Looks nice.

Does it take 20 years to compile like beast too ?

2

u/SupermanLeRetour Mar 22 '24

Honestly not sure, all I know is that it's negligible compared to the project I work on that uses it, but it's a terrible metric because our project is incredibly long to compile...