Instructions:
NOTE: everything assumes the scholars-discovery code is checked out into the
scholars-discovery
directory. It is in the .gitignore
file.
This will run off the scholars-discovery
master branch. Right now that might
not have a grapqhl endpoint - for the time being it may be best to switch to
the vstf-staging
branch (e.g. git checkout ...
). The idea for this
project is you should be able to use it to run any branch in development mode.
Put TDB data in the data-imported/ directory. Then cd ..
(back up to scholars-discovery-setup directory)
cd ..
docker-compose up
This is making us of a file application-dev.yml
to configure scholars-discovery
for local development mode. It also defaults to importing data into the index
at startup.
However, you can change middleware.index.onStartup=false
after the first start up
has finished and imported into the index succesfully - so that it doesn't rebuild the
index every time.
# file: application-dev.yml
...
middleware:
index:
onStartup: true # change to false after first run
...
Once you have running, can go this http://localhost:9000/gui and run GraphQL queries. Here is a sample one:
query {
people (
facets: [
{field: "name" },
{field: "region"},
],
paging: { pageSize:10, pageNumber: 0
},
query: { q: "*" }
) {
content {
id
name
keywords
positions {
title
}
publications {
title
}
}
page {
totalElements
totalPages
number
size
}
facets {
field
entries {
content {
value
count
}
}
}
}
}