Inspire-search Angular JS module used in http://labs.inspirehep.net search results.
$ npm i
$ cd example; npm install; cd ..
$ npm run-script demo
Navigate to http://localhost:8000
to see the demo
.
$ npm test
$ # build
$ npm run-script docs
$ # read
$ open docs/index.html
Check out the example/
to see how to configure your app.
For easy development of inspirehep-search-js
on top of inspire-next follow these steps:
-
Fork this repo and clone your personal fork.
$ cd
$VIRTUAL_ENV/src $ git clone [email protected]:/inspirehep-search-js.git -
Set
ASSETS_DEBUG=True
in your configuration.$ vim $VIRTUAL_ENV/var/inspirehep-instance/inspirehep.cfg
-
If you want to make sure all your assets are correctly installed in
$VIRTUAL_ENV/var/inspirehep-instance/static
, do:$ cd
$VIRTUAL_ENV/src/inspire $ ./scripts/clean_assets -
Now create a symbolic link from the
dist/
folder in your development folder to the instance folder.$ rm -rf
$VIRTUAL_ENV/var/inspirehep-instance/static/node_modules/inspirehep-search-js/dist $ ln -s $VIRTUAL_ENV/src/inspirehep-search-js/dist/ $VIRTUAL_ENV/var/inspirehep-instance/static/node_modules/inspirehep-search-js/ -
Start watching changes in the
inspirehep-search-js
folder. Every time a JS or HTML file is modified, tests will run and thedist/
folder will be recreated.$ cd
$VIRTUAL_ENV/src/inspirehep-search-js $ npm install $ gulp watch -
Every time you modify a JavaScript or HTML template, hard refresh your browser to avoid caching and see your changes.