Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:citation_styles:citeproc-node [2012/12/12 11:05] – Fix repo pointer tfmorrisdev:citation_styles:citeproc-node [2017/11/27 04:21] (current) – Remove Zotero 5 warning bwiernik
Line 1: Line 1:
 +
 ====== Setting up the standalone citeproc-node server ====== ====== Setting up the standalone citeproc-node server ======
  
Line 40: Line 41:
 is in your path, of course): is in your path, of course):
  
-<code bash>node citeServer.js+<code bash>node ./lib/citeServer.js
 ... ...
 Error: Unable to load shared library /blah/blah/contextify.node Error: Unable to load shared library /blah/blah/contextify.node
Line 55: Line 56:
 node-waf distclean &&  node-waf configure build</code> node-waf distclean &&  node-waf configure build</code>
  
-(If the command gives an error the first time, try it again.)+If the command gives an error the first time, try it again. 
 +If that does not help, try this while you are still in the contextify directory: 
 + 
 +<code bash> 
 +cd .. && rm -r contextify 
 +git clone https://github.com/brianmcd/contextify.git 
 +cd contextify && npm rebuild</code> 
  
 ----- -----
Line 63: Line 71:
 Return to the top of the citeproc-node directory and attempt to run the server (again assuming that the node binary is in your path): Return to the top of the citeproc-node directory and attempt to run the server (again assuming that the node binary is in your path):
  
-<code bash>node citeServer.js</code>+<code bash>node ./lib/citeServer.js</code>
  
 If all is well, you will see: If all is well, you will see:
Line 78: Line 86:
 Now to test the server using the sampledata.json file provided in the citeproc-node sources. Try posting it to your server (which you should still have running): Now to test the server using the sampledata.json file provided in the citeproc-node sources. Try posting it to your server (which you should still have running):
  
-<code>curl --header "Expect:nothing" --header "Content-type: application/json" --data @sampledata.json -X POST http://127.0.0.1:8085?responseformat=html\&style=mla</code>+<code>curl --header "Expect:nothing" --header "Content-type: application/json" --data @sampledata.json -X POST http://127.0.0.1:8085?responseformat=html\&style=modern-language-association</code>
  
 ----- -----
dev/citation_styles/citeproc-node.1355328342.txt.gz · Last modified: 2012/12/12 11:05 (external edit)