Last active
August 25, 2017 20:48
-
-
Save rubcuadra/3694e163b23bafd45bceaa1045700a44 to your computer and use it in GitHub Desktop.
Cpp endpoint, download https://github.com/rubcuadra/crow/blob/master/amalgamate/crow_all.h and rename it to crow.h, you must install g++ and boost library, if you are using a Mac you can do it with brew and after the installation you can compile it using : g++ example.cpp -std=c++11 -I/usr/local/include -L/usr/local/lib -lboost_system
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "crow.h" | |
int main() | |
{ | |
crow::SimpleApp app; | |
CROW_ROUTE(app, "/") | |
([]() { | |
return "Quick example using crow!"; | |
}); | |
app.port(8080).run(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment