drogon/examples
fantasy-peak 5b5d1906bf
Add requestsBufferSize function (#2124)
2024-08-14 11:15:33 +08:00
..
async_stream Support request stream (#2055) 2024-07-03 11:31:39 +08:00
benchmark Minor enhancement: move some smart pointers around instead of copying them (#1954) 2024-02-15 14:52:10 +08:00
client_example Add requestsBufferSize function (#2124) 2024-08-14 11:15:33 +08:00
file_upload Add newline at EOF (#1932) 2024-01-31 10:43:30 +08:00
helloworld Add setsockopt to HttpServer (#2086) 2024-07-02 10:04:56 +08:00
jsonstore Add newline at EOF (#1932) 2024-01-31 10:43:30 +08:00
login_session Add newline at EOF (#1932) 2024-01-31 10:43:30 +08:00
prometheus_example Add an example of prometheus (#2076) 2024-06-19 14:13:15 +08:00
redis Enable readability/inheritance for cpplint (#1934) 2024-01-31 11:21:18 +08:00
redis_cache Enable readability/inheritance for cpplint (#1934) 2024-01-31 11:21:18 +08:00
redis_chat Enable readability/inheritance for cpplint (#1934) 2024-01-31 11:21:18 +08:00
simple_reverse_proxy Add newline at EOF (#1932) 2024-01-31 10:43:30 +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 Add regex support for websocket controller (#1779) 2024-06-04 11:27:00 +08:00
CMakeLists.txt Support request stream (#2055) 2024-07-03 11:31:39 +08:00
README.md Update README.md (#2080) 2024-06-21 10:04:11 +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 - An example showing how to use Drogon as a HTTP reverse proxy with a simple round robin
  7. benchmark - Basic benchmark(https://github.com/drogonframework/drogon/wiki/13-Benchmarks) example
  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 - A example websocket 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
  13. prometheus_example - An example of how to use the Prometheus exporter in Drogon

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).