Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kuzzle (Open-source Back-end, self-hostable & ready to use - Real-time, storage, advanced search - Web, Apps, Mobile, IoT) #9

Open
fititnt opened this issue Mar 21, 2018 · 1 comment
Labels
baas Backend as a Service

Comments

@fititnt
Copy link
Member

fititnt commented Mar 21, 2018

@fititnt fititnt added the baas Backend as a Service label Mar 21, 2018
fititnt added a commit to fititnt/kuzzle-playground that referenced this issue Mar 21, 2018
fititnt added a commit to fititnt/kuzzle-playground that referenced this issue Mar 21, 2018
…ast screenshots of backoffice; clean all command
@fititnt
Copy link
Member Author

fititnt commented Mar 22, 2018

Humm, in less than two hours is possible to test for who have docker and ngrok. See https://github.com/fititnt/kuzzle-playground. Here a dump:


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

  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. 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"
  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" }
  13. Ops. Request headers must set PUT & POST body content as Content-Type: application/json (see screenshots for details)
  14. Search documents with POST to http://localhost:7512/myindex/mycollection/_search and params on body (see screenshots for details)
  15. Go to http://kuzzle-backoffice.netlify.com and look around (see screenshots 15..19-kuzzle-backoffice.png)

Stop and clean up

  1. Ctrl + C at ngrok terminal to stop

Here images

# fititnt at bravo in /alligo/code/fititnt/kuzzle-playground/screenshots on git:master o [3:43:00]
$ ls -ltr | awk '{print $9}'

2-ngrok.png
3-kuzzle-backoffice.png
4-kuzzle-backoffice-loggedin.png
5-guide-essentials-persisted--POST.png
6-guide-essentials-persisted-PUT.png
1-docker-compose.png
7-guide-essentials-persisted-GET(list-collections).png
8-guide-essentials-persisted-POST(created-document).png
9-guide-essentials-persisted-POST(update-document)
10-Oops-look-at-_source.png
11-Oops-fix.png
12-Oops-better.png
13-search-and-find.png
14-search-and-miss.png
15-kuzzle-backoffice.png
16-kuzzle-backoffice.png
17-kuzzle-backoffice.png
18-kuzzle-backoffice.png
19-kuzzle-backoffice.png


1-docker-compose
2-ngrok
3-kuzzle-backoffice
4-kuzzle-backoffice-loggedin
5-guide-essentials-persisted--post
6-guide-essentials-persisted-put
7-guide-essentials-persisted-get list-collections
8-guide-essentials-persisted-post created-document

10-oops-look-at-_source
11-oops-fix
12-oops-better
13-search-and-find
14-search-and-miss
15-kuzzle-backoffice
16-kuzzle-backoffice
17-kuzzle-backoffice
18-kuzzle-backoffice
19-kuzzle-backoffice

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
baas Backend as a Service
Projects
None yet
Development

No branches or pull requests

1 participant