diff --git a/README.md b/README.md index c28b94e..cab29e7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,15 @@ # dreamfactory-playground -Rocha's DreamFactory playground (aka: I'm just testing DreamFactory, a open souce BaaS) +DreamFactory id a open source software package that provides a complete REST +API for mobile, web, and IoT applications. This repository is just a playground, +a testing to see if worth pass for the others at the [ChatOps for non-DevOps +people Working Group 2018/01](https://github.com/fititnt/chatops-wg). + +My initial impressions are: wow, this is very very powerful; **not only the very +basic (non optimized for production) setup could be done by someone who do not +have knowledge of DevOps, but it also helps to abstract as a relative single +interface a lot of data sources.** I still need to test other BaaS, but this for +sure is not bad. And it have a very good plus: it connects to a lot of databases, +it does not force you to use just one or two drivers. ## Logbook @@ -40,9 +50,33 @@ $ ls -ltr screenshots | awk '{print $9}' 5-dreamfactory-api-doc--mongodb.png 6-dreamfactory-api-doc--mysql.png +## Read tutorial on http://wiki.dreamfactory.com/DreamFactory/Tutorials/cURL_Examples +xdg-open http://wiki.dreamfactory.com/DreamFactory/Tutorials/cURL_Examples -``` +# Note; the tutorials uses port 8080, but my setup is running on 80. + +# Admin: joomleiro@example.com, password: joomleiro + +# fititnt at bravo in /alligo/code/fititnt/dreamfactory-playground on git:master x [4:49:58] +$ curl -i -k -3 -X POST "http://localhost:80/api/v2/system/admin/session" \ + -d '{ "email" : "joomleiro@example.com", "password" : "joomleiro" }' \ + -H "Content-Type: application/json" +HTTP/1.1 200 OK +Date: Thu, 22 Mar 2018 07:50:52 GMT +Server: Apache/2.4.29 (Unix) OpenSSL/1.0.1t PHP/7.0.28 +X-Powered-By: PHP/7.0.28 +Cache-Control: no-cache, private +Content-Length: 917 +Content-Type: application/json +{"session_token":"eyJ0eXAiOiJ.....long string here...","session_id":"eyJ0eXAiOiJKV1QiL...long string here..","id":1,"name":"Emerson Rocha","first_name":"Emerson","last_name":"Rocha","email":"joomleiro@example.com","is_sys_admin":true,"last_login_date":"2018-03-22 07:50:52","host":"6a566a60b358"}% + +## Ok. It works. But now is much more about read documentation (with a lot of +## good video tutorials) and this can be made by some coworker later. But +## the interface of dreamfactory is very very friendly. More friendly than a lot +## of vendors with lock in out there. + +``` ### Enviroment