Instructions:
- git clone https://github.com/vivo-community/scholars-discovery.git
- git clone https://github.com/vivo-project/sample-data.git
NOTE: everything assumes the scholars-discovery code is checked out into the
scholars-discovery
directory, and sample-data
into a sample-data
directory
(which is the default anyway). They are 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.
cd data-importer
./gradlew build
(orgradlew.bat
on Windows)./gradlew run --args='openvivo --import'
That should (after 5-10 minutes) put data in the data-imported/openvivo
directory. Then cd ..
(back up to scholars-discovery-setup directory)
cd ..
docker-compose up
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. Sample queries can be found here: