In order to process, you should have git, docker, and docker-compose installed (don't forget to run the post-installation steps from the Docker doc).
For ElasticSearch to run well, you should also exec the following command:
sysctl -w vm.max_map_count=262144
git clone git@github.com:rvuong/mu-project.git
Start the stack
cd mu-project
docker-compose up --build
Then you should be able to request both the Elasticsearch and Kibana urls:
Page | Url |
---|---|
Frontend home | http://localhost:80 |
Elasticsearch home | http://localhost:9200 |
Elasticsearch Cat. health | http://localhost:9200/_cat/health |
Elasticsearch Cluster health | http://localhost:9200/_cluster/health |
Kibana home | http://localhost:5601 |
API root | http://localhost:80/api/ |
Load the initial user:
curl -X PUT \
http://localhost:9200/user/_doc/a9bd0bd8-839b-11e9-8fc4-0242c0a82004 \
-H 'Accept: application/json' \
-H 'Content-Type: application/json' \
-d '{
"name": "Myriam"
}'
Given the data file, load the menus:
curl -H "Content-Type: application/json" -XPOST "localhost:9200/menu/_bulk?pretty&refresh" --data-binary "@menus.json"