This a dummy project, to play with various technologies :
- finatra
- bootstrap
- highcharts & highstock for timeseries
- dropzone
- elasticsearch
- elastic4s
- better-files
sbt run
starts the server which listens on0.0.0.0:8888
git clone https://github.com/dacr/finatra-dummy.git
sbt run
As soon as something changes, finatra restarts...
sbt '~re-start'
sbt '~re-start -maxRequestSize=500.megabytes'
ps : brought to us thanks to https://github.com/spray/sbt-revolver sbt plugin
sbt assembly
./runit.sh
./runit.sh -help
to view options.
docker run --name elasticsearch -p 9200:9200 -p 9300:9300 elasticsearch
- Use java 8
- System tuning :
sysctl -w net.ipv4.ip_local_port_range="5000 65535" sysctl -w net.ipv4.tcp_tw_reuse=0 sysctl -w net.ipv4.tcp_tw_recycle=0
- Elasticsearch system mandatory requirements :
sysctl -w vm.max_map_count=262144
- some usefull elasticsearch command :
curl -s 'http://localhost:9200/_search?q=*' | jq
curl -s 'http://localhost:9200/_search?q=*&size=100' | jq
curl -XPOST 'http://localhost:9200/dummy/basic' -d '{ "message" : "hello" }'