Simpler README
This commit is contained in:
parent
7951ded3ec
commit
9f1718651e
1 changed files with 4 additions and 15 deletions
19
README.md
19
README.md
|
|
@ -33,13 +33,6 @@ For HTTPS: OpenSSL libraries from https://www.openssl.org are required.
|
||||||
### Compile and run
|
### Compile and run
|
||||||
|
|
||||||
Compile with a C++11 compiler supporting regex (for instance g++ 4.9):
|
Compile with a C++11 compiler supporting regex (for instance g++ 4.9):
|
||||||
|
|
||||||
On Linux using g++: add `-pthread`
|
|
||||||
|
|
||||||
Note: added `-lboost_filesystem` for the default_resource example, and `-lboost_thread` to make the json-example thread safe. Also added `-lboost_coroutine -lboost_context` to make synchronous flushing of response stream work. On some systems you might have to use postfix `-mt` to link to these libraries.
|
|
||||||
|
|
||||||
You can now also compile using CMake and make:
|
|
||||||
|
|
||||||
```
|
```
|
||||||
cmake .
|
cmake .
|
||||||
make
|
make
|
||||||
|
|
@ -47,19 +40,15 @@ make
|
||||||
|
|
||||||
#### HTTP
|
#### HTTP
|
||||||
|
|
||||||
`g++ -O3 -std=c++11 http_examples.cpp -lboost_system -lboost_thread -lboost_coroutine -lboost_context -lboost_filesystem -o http_examples`
|
Run the server and client examples: `./http_examples`
|
||||||
|
|
||||||
Then to run the server and client examples: `./http_examples`
|
Direct your favorite browser to for instance http://localhost:8080/
|
||||||
|
|
||||||
Also, direct your favorite browser to for instance http://localhost:8080/
|
|
||||||
|
|
||||||
#### HTTPS
|
#### HTTPS
|
||||||
|
|
||||||
`g++ -O3 -std=c++11 https_examples.cpp -lboost_system -lboost_thread -lboost_coroutine -lboost_context -lboost_filesystem -lssl -lcrypto -o https_examples`
|
|
||||||
|
|
||||||
Before running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html
|
Before running the server, an RSA private key (server.key) and an SSL certificate (server.crt) must be created. Follow, for instance, the instructions given here (for a self-signed certificate): http://www.akadia.com/services/ssh_test_certificate.html
|
||||||
|
|
||||||
Then to run the server and client examples: `./https_examples`
|
Run the server and client examples: `./https_examples`
|
||||||
|
|
||||||
Also, direct your favorite browser to for instance https://localhost:8080/
|
Direct your favorite browser to for instance https://localhost:8080/
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue