This is INSPIRE source code overlay for Invenio v.2.0. It installs on top of Invenio digital library platform source code as explained here.
To install the overlay, simply clone this repository and run:
(inspire)$ cdvirtualenv src/inspire-next
(inspire)$ pip install -r requirements.txt --exists-action i
The parameter exists-action ignores any existing installations (for example, Invenio).
Next step is to install assets (js, css etc.):
(inspire)$ inveniomanage bower -i bower-base.json > bower.json
Generates or update bower.json for you.
(inspire)$ cat .bowerrc
{
"directory": "inspire/base/static/vendors"
}
(inspire)$ bower install
(inspire)$ ls inspire/base/static/vendors
bootstrap
ckeditor
hogan
jquery
jquery-tokeninput
jquery-ui
plupload
...
Now you can follow the standard invenio installation and development procedures, such as running inveniomanage collect.
Populate demo records and enable demo-site:
(inspire)$ cdvirtualenv src/inspire-next
(inspire)$ inveniomanage demosite populate -p inspire.base -f inspire/testsuite/data/demo-records.xml
Start the server:
(inspire)$ inveniomanage runserver
Now you should have a running INSPIRE demo site running at http://localhost:4000!
INSPIRE uses Grunt and Bower with convenient methods for compiling code, run tasks, install libraries and more. To use them, install the required dependencies as directed and then run some Grunt commands.
From the command line:
- Install
grunt-cli
globally withnpm install -g grunt-cli
. - Navigate to the root directory, then run
npm install
.npm
will look at package.json and automatically install the necessary local dependencies listed there.
grunt jshint
grunt jsbeautifier
Should you encounter problems with installing dependencies or running Grunt commands, uninstall all previous dependency versions (global and local). Then, rerun npm install
.