Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

Commit

Permalink
EticaAI/chatops-wg-data#9: added more steps and screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
fititnt committed Mar 21, 2018
1 parent 0268b14 commit 3c46587
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 7 deletions.
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,27 @@
# kuzzle-playground
Just testing

## Requisites
## Step by step

> From http://docs.kuzzle.io/guide/essentials/installing-kuzzle/
Based on the documentation at http://docs.kuzzle.io/guide/essentials/installing-kuzzle/

1. Docker v1.10+
2. Docker-compose v1.8+
3. Maximum virtual memory >= 262144
> You can see some results at [screenshots/](screenshots/) folder.
1. Requires: Docker v1.10+
2. Requires: Docker-compose v1.8+
3. Requires: Maximum virtual memory >= 262144
- if `sysctl -n vm.max_map_count` is not >= 262144, run `echo "vm.max_map_count=262144" >> /etc/sysctl.conf`
4. `docker-compose up`
4. Execute `docker-compose up` on this same repository folder (already downloaded docker-compose.yml)
- Expected response on initialization process: _kuzzle_1 | [] Kuzzle server ready_
- This command shoud return a JSON result `curl "http://localhost:7512/?pretty"`
- This command shoud return a JSON result `curl "http://localhost:7512/?pretty"`
5. `ngrok http 7512` (Note: Use free account from https://ngrok.com, and install Ngrok on your system)
6. Go to http://kuzzle-backoffice.netlify.com/ and configue the server with ngrok public URL
7. Go to http://docs.kuzzle.io/guide/essentials/persisted/
8. Do a POST request to URL http://localhost:7512/myindex/_create (Note: you can a great GUI for this, https://www.getpostman.com/)
9. Do a PUT request to URL http://localhost:7512/myindex/mycollection
10. Do a GET request to URL http://localhost:7512/myindex/_list (this list collections)
11. Do a POST request to http://localhost:7512/myindex/mycollection/_create to create a document with body:
- `{ "message": "Hello, world!" }`
12 Copy the `_id_` from last respose an use on next request instead of xxxxxxxxxxxxxx
12. Do a POST request to http://localhost:7512/myindex/mycollection/xxxxxxxxxxxxxx/_update to update a document with body:
- `{ "message": "in a bottle", "an_englishman": "in New York" }`
Binary file added screenshots/1-docker-compose.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/2-ngrok.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/3-kuzzle-backoffice.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/4-kuzzle-backoffice-loggedin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added screenshots/6-guide-essentials-persisted-PUT.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

0 comments on commit 3c46587

Please sign in to comment.