Skip to content

Latest commit

 

History

History
47 lines (29 loc) · 1.88 KB

readme.md

File metadata and controls

47 lines (29 loc) · 1.88 KB

Mark Logic Database setup

Good articles

Reading the below article will give a rough idea on how the Mark Logic NPM module works and how to set it up.

Install Mark Logic

Download and install Mark Logic Server 8.

Once installed start the Mark Logic Server by clicking on the shortcut that has been added to your Windows startbar. You'll be able to view both the admin and query console screens.

Create a Mark Logic Database

Change directory to [project-name]/database and run the below CURL command into the Mark Logic Rest API to create a Database. The database will be created with the configuration options we have listed within the configuration.json file in this directory.

Terminal $: cd [project-name]/database
Terminal $: curl --digest --user admin:admin -X POST -d@"configuration.json" -i -H "Content-type:application/json" http://localhost:8002/v1/rest-apis

Populate the Mark Logic Database

In the query console screen select the wiley-online-library as your content source from the drop down menu and run the below XQuery to populate the Mark Logic Database.

XQuery is currently private

Setup the Node Application

In the project directory install the NPM dependencies using the following commands.

Terminal $: cd ..
Terminal $: NPM install

Start the NodeJS application using Nodemon.

Terminal $: nodemon server.js

Navigate to a full article endpoint and check to ensure that the article is being return in JSON format.