readme updated

pull/1/head
moneroexamples 8 years ago
parent f2ab309066
commit a2e10a680c

@ -2,9 +2,9 @@
Example of using [restbed](https://github.com/Corvusoft/restbed/) to provide Monero related JSON REST service.
# Scrap notes
## Scrap notes
## Gererate your won ssl certificate
### Generate your own ssl certificate
Setting up https and ssl certificates in restbed
- https://github.com/Corvusoft/restbed/blob/34187502642144ab9f749ab40f5cdbd8cb17a54a/example/https_service/source/example.cpp
@ -20,7 +20,7 @@ openssl x509 -req -days 3650 -in server.csr -signkey server.key -out server.crt
openssl dhparam -out dh2048.pem 2048
```
## Enable it in Firefox or Chrome
### Enable it in Firefox or Chrome
Firefox and chrome will not work with that certificate as they cant verify it.
To overcome this for development purposes on localhost, just open new tab in the browser used
@ -28,7 +28,7 @@ and go to any link from the service, e.g., `https://localhost:1984/login`. Once
you should get warring about unsecured or un verified certificate. Then you just add it manually
as exception.
## Test connection using curl
### Test connection using curl
Example of curl https request to the service
@ -36,6 +36,15 @@ Example of curl https request to the service
curl -k -X POST -d '{"withCredentials":true,"address":"41pJD13rU5r3KZsxzS65tL9zLMpZZCer8aWSi7wj8Xm99BAgXthcj2wgazxdTX9auFAmp3czfJUGH2S3UJfLwDWXUxc3ooC","view_key":"06d1f0f0fd766c75b52b9c597592d06f4bca5cd6dcd3e9bf1859bc78d0d5f80e","create_account":true}' https://localhost:1984/login
```
### Compile mysql c++ connector
```
git clone https://github.com/mysql/mysql-connector-cpp.git
cd mysql-connector-cpp && mkdir build && cd build
cmake .. -DBUILD_STATIC=1
make
```
## Other examples
Other examples can be found on [github](https://github.com/moneroexamples?tab=repositories).

Loading…
Cancel
Save