From 4ee88984fcca86c5b0c9c4bbb7e9148c7d2fe9db Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Sun, 6 Aug 2023 16:43:57 +0200 Subject: Add hello world example --- examples/hello/README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 examples/hello/README.md (limited to 'examples/hello/README.md') diff --git a/examples/hello/README.md b/examples/hello/README.md new file mode 100644 index 0000000..7c7cf74 --- /dev/null +++ b/examples/hello/README.md @@ -0,0 +1,17 @@ +# "Hello world" example + +This example shows a minimal setup for an application using `slweb`. When +executed, it starts a HTTP/1.1 server on port `8080` and returns an example +website reading "Hello from slweb!" when either `/` or `/index.html` are +accessed by clients. + +## How to build + +If using `make(1)`, just run `make` from this directory. + +If using CMake, examples are built by default when configuring the project +from [the top-level `CMakeLists.txt`](../../CMakeLists.txt). + +## How to run + +Run the executable without any command line arguments. -- cgit v1.2.3