inspirehep / beard-server

Application providing REST API over Beard
GNU General Public License v2.0
2 stars 4 forks source link

global: alpha release #3

Closed jacenkow closed 8 years ago

jacenkow commented 8 years ago

Signed-off-by: Grzegorz Jacenków grzegorz.jacenkow@cern.ch

kaplun commented 8 years ago

cc: @jacquerie , @jalavik @jacenkow and I just re-pushed a clean branch with all the codes.

It's missing tests ATM.

jalavik commented 8 years ago

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?

jacenkow commented 8 years ago

@jalavik good to go

jacenkow commented 8 years ago

@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.

kaplun commented 8 years ago

@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?)

jacenkow commented 8 years ago

@kaplun I know that has happened with Invenio3, but beard-server is kind of standalone.

jmartinm commented 8 years ago

@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
jacenkow commented 8 years ago

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.

jacenkow commented 8 years ago

Sorry

jacenkow commented 8 years ago

Still missing wsgi implementation.

jacenkow commented 8 years ago

@jalavik fyrverkeri!