mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 12:39:01 -04:00
Add more READMEs
This commit is contained in:
parent
203fdc139d
commit
850e39fcfb
@ -74,8 +74,8 @@ Example libraries
|
||||
|
||||
You can find example libraries under **_examples/_**.
|
||||
|
||||
The examples should be compiled using the supplied **build.sh** scripts
|
||||
and assume you have installed the header files using make install.
|
||||
The examples contain a README file with instructions on how
|
||||
to build or use them.
|
||||
|
||||
I apologize for unclear examples or documentation, I am working on
|
||||
improving those.
|
||||
|
11
examples/generic/README.md
Normal file
11
examples/generic/README.md
Normal file
@ -0,0 +1,11 @@
|
||||
Generic Kore application that shows off a few things:
|
||||
|
||||
* File uploads (/upload)
|
||||
* Authentication blocks (/private)
|
||||
* base64 encoding tests (/b64test)
|
||||
* Parameter validator tests (/params-test)
|
||||
|
||||
Run:
|
||||
```
|
||||
# kore run
|
||||
```
|
9
examples/pgsql/README.md
Normal file
9
examples/pgsql/README.md
Normal file
@ -0,0 +1,9 @@
|
||||
Kore pgsql example.
|
||||
|
||||
* Performs 2 async pgsql queries.
|
||||
* You must set the connection string before running
|
||||
|
||||
Run:
|
||||
```
|
||||
# kore run
|
||||
```
|
@ -1,3 +0,0 @@
|
||||
Compile this example using:
|
||||
|
||||
# env KORE_LDFLAGS="-I/path/to/libcurl -lcurl"
|
21
examples/tasks/README.md
Normal file
21
examples/tasks/README.md
Normal file
@ -0,0 +1,21 @@
|
||||
Kore task example.
|
||||
|
||||
This example creates an asynchronous task from the page handler
|
||||
that performs a POST to the same server and fetches its data
|
||||
before returning to the client.
|
||||
|
||||
Build:
|
||||
```
|
||||
# env KORE_LDFLAGS="-I/path/to/libcurl -lcurl" kore build
|
||||
```
|
||||
|
||||
Run:
|
||||
```
|
||||
# kore run
|
||||
```
|
||||
|
||||
Test:
|
||||
```
|
||||
# curl -i -k https://127.0.0.1:8888/?id=astring
|
||||
The returned data must match what you supplied in user ([a-z] string)
|
||||
```
|
Loading…
x
Reference in New Issue
Block a user