Skip to content

Latest commit

 

History

History
50 lines (34 loc) · 1.14 KB

setup.md

File metadata and controls

50 lines (34 loc) · 1.14 KB

install docker

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh

setup db

docker compose -f db.yml up -d

install elasticsearch plugin

docker exec -it tg_scan_elasticsearch bash
 ./bin/elasticsearch-plugin install --batch https://github.com/medcl/elasticsearch-analysis-pinyin/releases/download/v7.17.6/elasticsearch-analysis-pinyin-7.17.6.zip
 ./bin/elasticsearch-plugin install --batch https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.17.6/elasticsearch-analysis-ik-7.17.6.zip
 ./bin/elasticsearch-plugin install --batch https://github.com/medcl/elasticsearch-analysis-stconvert/releases/download/v7.17.6/elasticsearch-analysis-stconvert-7.17.6.zip
exit

restart db

docker compose -f db.yml restart

init db schema

  • schema path: api-server/src/main/resources/sql/schema.sql

init index mapping

  • exec script on kibana dev console
  • script path: api-server/src/main/resources/idx/*.txt

copy .env.template to .env, and fill in the required information

cp .env.template .env

build the project

sh startup.sh