ResearchSpace Platform
- Unix-like terminal environment (e.g., Linux, Mac, Cygwin, etc)
- Docker
- git
- java 8
- sbt
- node
- yarn
- Update your local package index
sudo apt-get update
- Download docker package
sudo apt-get install docker.io
- Test the installation
sudo docker run hello-world
- Enable docker to run without using sudo, read the following instructions
sudo apt-get install git
sudo add-apt-repository ppa:openjdk-r/ppa
sudo apt-get update
sudo apt-get install openjdk-8-jdk
- Install Scala
sudo apt-get install scala
- Enable apt-get to find the sbt package
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install git
- Go to the Get Docker for Mac and Download Stable Docker Image
- Open the image file and drag it into the Applications
- Launch the Docker app and a blue whale will confirm if all is running well
- Test Docker by running in the Terminal app
docker run hello-world
Note, that by default Homebrew will install Java 9. Here are details of how to install Java 8
brew tap caskroom/versions
brew cask install java8
brew install sbt
brew install node
brew install yarn
Enter the following into your terminal:
git clone https://github.com/researchspace/researchspace.git
cd researchspace
./build.sh compile
unzip example-data/blazegraph.jnl.zip -d example-data/
unzip example-data/assets.zip -d metaphactory/data/
docker run --name rs-blazegraph-default -d --restart=always -p 10080:8080 --env QUERY_TIMEOUT="30000" -v $(pwd)/example-data/:/blazegraph-data/:rw researchspace/blazegraph
echo "sparqlEndpoint=http://localhost:10080/blazegraph/sparql" >> runtime/config-dev/environment.prop
echo "appsDirectory=$(pwd)/researchspace/apps" >> runtime/config-dev/environment.prop
./build.sh
This will:
- Check out this code
- Compile and initialise the some files using SBT in batch mode
- Extract a sample Blazegraph database file
- Extract a sample assets database
- Start a Blazegraph instance in a docker container (with the sample database file mounted)
- Configure the platform to use this Blazegraph instance as its default repository
- Configure the platform to use the provided ResearchSpace App
- Start the SBT build environment in interactive mode.
SBT will resolve some dependencies and present the SBT prompt.
At the SBT prompt, enter:
~jetty:start
This will start both the the backend core Java system and the frontend JavaScript/TypeScript app.
It may take a few minutes to complete on the first run; it should be quicker on subsequent runs.
You should see console output similar to
*************************************************************************************
* Main platform servlet context initialised. Press CTRL+C to terminate the process. *
*************************************************************************************
followed by
2017-11-01 16:04:25.820:INFO:oejs.AbstractConnector:main: Started ServerConnector@4fddf222{HTTP/1.1,[http/1.1]}{0.0.0.0:10214}
2017-11-01 16:04:25.823:INFO:oejs.Server:main: Started @14366ms
You can then go to http://localhost:10214/
in your browser, and log in with admin:admin