drogon/examples
Martin Chang 6a882841f1
Fix typos (#899)
2021-06-22 15:08:06 +08:00
..
benchmark Port drogon to Windows (#335) 2020-01-25 11:58:20 +08:00
client_example Fix stack use after scope error in client_example (#707) 2021-02-07 10:35:21 +08:00
file_upload Add minimal server side examples (#880) 2021-06-01 16:08:51 +08:00
helloworld Fix typos (#899) 2021-06-22 15:08:06 +08:00
jsonstore Add jsonstore example (#894) 2021-06-19 22:55:44 +08:00
login_session Fix typos (#899) 2021-06-22 15:08:06 +08:00
simple_reverse_proxy feature(signal): Add option to disable signal handling (#742) 2021-03-11 22:03:02 +08:00
websocket_client Drogon test framework (#869) 2021-05-27 20:09:57 +08:00
CMakeLists.txt Add jsonstore example (#894) 2021-06-19 22:55:44 +08:00
README.md Add jsonstore example (#894) 2021-06-19 22:55:44 +08:00

README.md

Drogon Examples

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

  1. helloworld - The multuple 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.

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