From ebdf8ed69bc825b184a0aa16190fbe10bfad1e43 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Mon, 23 Jan 2023 13:15:33 -0500 Subject: [PATCH] init readme, gitignore, server.cpp --- .gitignore | 3 +++ README.md | 4 ++++ server.cpp | 13 +++++++++++++ 3 files changed, 20 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100755 server.cpp diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..69720c1 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.swp +crow.h +a.out diff --git a/README.md b/README.md new file mode 100644 index 0000000..80333f0 --- /dev/null +++ b/README.md @@ -0,0 +1,4 @@ +g++ -std=c++11 -Wall -Wextra -Werror server.cpp -lpthread + +brew install asio +brew install boost diff --git a/server.cpp b/server.cpp new file mode 100755 index 0000000..421a991 --- /dev/null +++ b/server.cpp @@ -0,0 +1,13 @@ +#include "crow.h" + +int main() +{ + crow::SimpleApp app; + + CROW_ROUTE(app, "/")([](){ + return "Hello world"; + }); + + app.port(18080).run(); +} +