Questions tagged [crow]

For questions about Crow: a C++ microframework for web.

Crow is C++ microframework for web inspired by Python Flask. Some of its features are type safety and performance. Link to github: ipkn/crow.

24 questions
4
votes
2 answers

Unable to compile sample crowtest.cpp with crow

I'm trying to run a sample c++ program using crow but getting the error fatal error: asio.hpp: No such file or directory Installed crow using the instructions in https://crowcpp.org/master/getting_started/setup/linux/#installing-from-source Followed…
2
votes
1 answer

Can't compile a Crow sample - boost/optional.hpp: No such file or directory

I'd like to compile and test Crow C++ microframework in Debian Linux 11: Download the latest crow.deb, currently crow-v1.0+1.deb. Install it: $ sudo dpkg -i crow-v1.0+1.deb Selecting previously unselected package crow. (Reading database ... 587955…
haba713
  • 2,465
  • 1
  • 24
  • 45
2
votes
0 answers

Conflict between "zlib.h" header of ZLIB and CryptoPP

I use a library in my project which uses ZLIB library for compression. On the other hand I use CryptoPP library in my project. The consequence is that when compiling compiler makes a mistake and loads the zlib.h of CryptoPP instead of ZLIB. Here is…
navidcity
  • 31
  • 5
1
vote
0 answers

Mongodb collections data display blank on webpage with Crow

I have deployed to railway and mongodb collections named contacts is added with josn file. I want contacts' data display on webpage. Then I add a mongodb c++ drivers by create a dockerfile in hello_crow/bbox. I use the commanddocker build --rm…
Auly
  • 9
  • 4
1
vote
1 answer

Websocket client not closing gracefully

I followed this link to create a websocket client. This is the class for that: #include #include #include #include class WebsocketClient…
ATK
  • 1,296
  • 10
  • 26
1
vote
1 answer

C++ with Crow, CMake, and Docker

Goal I would like to compile an Crow Project with CMake and deploy it in a docker container. Code So far, I compiled in Visual Studio and installed Crow via VCPKG similar to this Tutorial. example main.cpp from Crow website: #include…
1
vote
0 answers

Crow C++ framework HTML page blank after compiling on Xcode

I have been following this example in the "Getting Started" page on Crow's website but the page is blank after compiling on Xcode. **/main.cpp** #include "crow.h" //#include "crow_all.h" int main() { crow::SimpleApp app; //define your…
user19394369
1
vote
1 answer

Api server rest with crow

I am implementing a server rest using Crow. In my code i want to do some action before sending the response. These action are complimented in another class. it is possible to call this method in the Crow_Route? I need something like : …
yamilyana
  • 11
  • 4
1
vote
0 answers

How to send large string to the crow server with libcurl?

This is my libcurl request (curl_example.cpp) #include #include #include #include #include // std::ifstream using namespace std; using namespace cv; static size_t WriteCallback(void…
shaik.t
  • 11
  • 3
1
vote
1 answer

Website Interference w/ Multiple Instances Running (JavaScript)

I am relatively new to JavaScript but I am creating a simple hangman web app in local host. The game runs perfectly, just as I want it. However, I realized that after loading the game at the same time in different tabs, the words change in all…
NeonFire
  • 186
  • 2
  • 7
1
vote
4 answers

Crow C++ framework HTML page is blank after compiling on Xcode

After adding all the necessary header files from Crow, I finally managed to run and get the Hello World output at my localhost port. When I try to render a webpage using mustache command with a simple HTML file, the program compiles but I only get a…
Sugan
  • 15
  • 10
1
vote
1 answer

What is the correct way to get the client's IP address in Crow (C++ library)?

I am using Crow (C++ server library) and trying to get the client's IP address. I found this answer, Getting the client IP address: REMOTE_ADDR, HTTP_X_FORWARDED_FOR, what else could be useful?, so I have tried: CROW_ROUTE(app, "/mine")([](const…
Halcyon
  • 1,376
  • 1
  • 15
  • 22
1
vote
1 answer

Fetch non-int (string) url resource-id in crow

How to get a non-int resource-id in c++ crow. I cannot add a route CROW_ROUTE(app, "/uid/") or CROW_ROUTE(app, "/uid/") as it fails to compile. The examples donot have such a case. I have tried int main() { crow::SimpleApp…
parthasarathy
  • 171
  • 1
  • 5
  • 14
0
votes
1 answer

How to fix 'Not found' when display HTML with Crow?

I use windows10.I use crow, when display page with string,it works. But when display page with a html file, return "Not found". main.cpp #include "crow_all.h" using namespace std; using namespace crow; int main(int argc, char* argv[]) { …
Auly
  • 9
  • 4
0
votes
0 answers

building project "app_crow.vcxproj" -- FAILED

Included the Additional Directory and everything, still fails. // app_crow.cpp : This file contains the 'main' function. Program execution begins and ends there. // #include "crow_all.h" #include using namespace std; int main(int argc,…
1
2