Closed jacenkow closed 8 years ago
cc: @jacquerie , @jalavik @jacenkow and I just re-pushed a clean branch with all the codes.
It's missing tests ATM.
Can you, instead of including third-party JS/CSS like bootstrap, angular etc., add a package.json with versions etc. so that we can get them via npm instead?
@jalavik good to go
@jalavik finally ready to merge.
However npm install
does not have an option to specify a destination folder, thus I switched to bower
, which allows to do it. It shouldn't be a problem, since beard-server
will be installed on dedicated to it machines.
@jacenkow bower
is superseded by npm. In order to choose a folder for npm, I guess you simply need to cd
into the destination folder. @jmartinm ? (BTW are you using npm from nodejs 5/6 and not nodejs 1, right?)
@kaplun I know that has happened with Invenio3
, but beard-server
is kind of standalone.
@jacenkow bower is superseded by npm. In order to choose a folder for npm, I guess you simply need to cd into the destination folder. @jmartinm ? (BTW are you using npm from nodejs 5/6 and not nodejs 1, right?)
You might find at some point that some packages are not available in bower
or it gets discontinued altogether in the future, but I understand that the installation instructions look a bit cleaner with it, so it fits your needs...
You could also add the package.json
and add to the installation instructions:
npm install --prefix <path/to/prefix_folder> -g
You might find at some point that some packages are not available in bower or it gets discontinued altogether in the future, but I understand that the installation instructions look a bit cleaner with it, so it fits your needs...
You could also add the package.json and add to the installation instructions:
npm install --prefix <path/to/prefix_folder> -g
Just curious how come I ended up with a lib
folder containing the whole beard_server
repo, ie. beard_server/static/lib/node_modules/beard-server/beard_server/ ...
.
Ok the trick behind the command is to say that you want to install a global package but instead of using the default folder /usr/local
, you point a new one. However it doesn't work since what we get is the whole repository installed as a npm package so we end up with nested beard_server
in node_modules folder.
Sorry
Still missing wsgi
implementation.
@jalavik fyrverkeri!
Signed-off-by: Grzegorz Jacenków grzegorz.jacenkow@cern.ch