aboutsummaryrefslogtreecommitdiffstats
path: root/examples/helloworld.cpp
diff options
context:
space:
mode:
authormnpk <mwpark@castis.com>2015-06-10 15:53:58 +0900
committermnpk <mwpark@castis.com>2015-06-10 18:09:49 +0900
commit7e1b4ee58c1c088cd5c1bdb9aa58df0e1a239ad9 (patch)
treecf10521aa48bf7b7d9c1d75c82c14a2c0f4c39dd /examples/helloworld.cpp
parentacf686d3dd3e7ecde6527432fe3090a94929ed14 (diff)
downloadcrow-7e1b4ee58c1c088cd5c1bdb9aa58df0e1a239ad9.tar.gz
crow-7e1b4ee58c1c088cd5c1bdb9aa58df0e1a239ad9.zip
Add the very basic example, and Update README.md
Diffstat (limited to 'examples/helloworld.cpp')
-rw-r--r--examples/helloworld.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/helloworld.cpp b/examples/helloworld.cpp
new file mode 100644
index 0000000..8b77490
--- /dev/null
+++ b/examples/helloworld.cpp
@@ -0,0 +1,13 @@
+#include "crow.h"
+
+int main()
+{
+ crow::SimpleApp app;
+
+ CROW_ROUTE(app, "/")
+ ([]() {
+ return "Hello world!";
+ });
+
+ app.port(18080).run();
+}