drogon/examples
MWX af29e25b03
Fix name issue when cross-compiling (#1906)
2024-01-18 13:38:27 +08:00
..
async_stream Support asynchronous sending of chunked responses (trantors new API) (#1886) 2024-01-15 23:26:27 +08:00
benchmark Drop cpp14 build (#1740) 2023-08-23 11:49:55 +08:00
client_example Use shared_ptr to store plugins (#1640) 2023-06-14 10:13:12 +08:00
file_upload Add GCC-compatible warnings to the example executables (#910) 2021-06-27 09:54:02 +08:00
helloworld Ensure requiring a semi-colon after macros (#1324) 2022-07-26 12:17:07 +08:00
jsonstore GitHub Action to find typos in the codebase using codespell (#1876) 2023-12-09 13:48:24 +08:00
login_session Fixed typos (#900) 2021-06-23 20:44:45 +02:00
redis Make & and * directly adjacent to variable names (#1810) 2023-10-12 11:27:25 +08:00
redis_cache GitHub Action to find typos in the codebase using codespell (#1876) 2023-12-09 13:48:24 +08:00
redis_chat Make & and * directly adjacent to variable names (#1810) 2023-10-12 11:27:25 +08:00
simple_reverse_proxy GitHub Action to find typos in the codebase using codespell (#1876) 2023-12-09 13:48:24 +08:00
websocket_client Use `wss://echo.websocket.events/.ws` in WebSocket client example (#1809) 2023-10-12 11:27:49 +08:00
websocket_server GitHub Action to find typos in the codebase using codespell (#1876) 2023-12-09 13:48:24 +08:00
CMakeLists.txt Fix name issue when cross-compiling (#1906) 2024-01-18 13:38:27 +08:00
README.md Support redis subscription (#1212) 2022-09-13 10:30:51 +08:00

README.md

Drogon Examples

The following examples can help you understand how to use Drogon:

  1. helloworld - The multiple ways of "Hello, World!"
  2. client_example - A client example.
  3. websocket_client - An example on how to use the WebSocket client
  4. login_session - How to use the built-in session system to handle login and out
  5. file_upload - How to handle file uploads in Drogon
  6. simple_reverse_proxy - A Example showing how to use drogon as a http reverse proxy with a simple round robin.
  7. benchmark - Basic benchmark example. see wiki benchmarks
  8. jsonstore - Implementation of a jsonstore-like storage service that is concurrent and stores in memory. Serving as a showcase on how to build a minimally useful RESTful APIs in Drogon.
  9. redis - A simple example of Redis
  10. websocket_server - Example WebSocker chat room server
  11. redis_cache - An example for using coroutines of redis clients
  12. redis_chat - A chatroom server built with websocket and redis pub/sub service.

TechEmpower Framework Benchmarks test suite

I created a benchmark suite for the tfb, see here for details.

Another test suite

I also created a test suite for another web frameworks benchmark repository, see here, in this project, drogon is used as a sub-module (locally include in the project).