rvuong / mu-project

Mu Project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

mu-project

Pre-requisite

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 clone git@github.com:rvuong/mu-project.git

Run

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/

Initialize the data

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"

About

Mu Project


Languages

Language:HTML 33.4%Language:JavaScript 27.9%Language:Python 19.3%Language:CSS 16.7%Language:Dockerfile 2.8%