ndl-lab / tugidigi-web

次世代デジタルライブラリーのソースコード(Programs of the Next Digital Library.)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Next Digital Library

back

Backend of Next Digital Library is spring-boot-based Single Jar Application.

required

  • JDK(Openjdk 11 or later)
  • Apache Maven
  • Elasticsearch(worked on 7.7) for Database and text search
  • vdaas/vald for image similarity search

build

sh build.sh

setup

1. Elasticsearch

After install & run elasticsearch, run following to create index

java -jar jisedigi-back-0.1.jar batch create-index all

See jp.go.ndl.lab.dl.back.batch.IndexBookBatch and IndexIllustrationBatch

2. vald

After install Kubernetes (such as [kind] https://kind.sigs.k8s.io/), run following to create pod

kubectl apply -f manifest/vald-pre/
kubectl apply -f manifest/vald-post/

if you want to custom the configuration, you can generate template file using helm chart(manifest/helmchart/values.yaml).

run API server

java -jar jisedigi-back-0.1.jar web

API is running on http://localhost:19998/dl/ by default

build front only (for developer)

Frontend of Next Digital Library is SPA powered by vue & vue-router.

required

install

npm install

start dev server

npm run start

Check http://localhost:8080/dl/

build

npm build

About

次世代デジタルライブラリーのソースコード(Programs of the Next Digital Library.)

License:Creative Commons Attribution 4.0 International


Languages

Language:Java 41.9%Language:TypeScript 41.0%Language:HTML 10.5%Language:SCSS 3.8%Language:JavaScript 2.6%Language:Shell 0.1%