MarkLogic-Node Generator
This application was generated by the MarkLogic-Node Slush generator, with the following components:
- AngularJS
- Gulp
- node.js: very thin layer, hosting the Angular code and proxying MarkLogic REST API requests
- Roxy Deployer: bootstrap MarkLogic databases, application servers, etc; scaffolding for MarkLogic REST API service extensions
Install Required Dependencies
- node.js
- npm: Built-in package manager for node (comes with
node, but check to be sure you have latest version:
npm install -g npm
) - gulp: Javascript task automation (
npm install -g gulp
) - Bower: A package manager for front-end libraries (
npm install -g bower
) - Git - Roxy depends on this version control system
- Ruby - Roxy depends on Ruby in order to run server configuration scripts
Install node modules using the node package manager:
npm install
Install bower dependencies using the bower package manager:
bower install
Running the application
Roxy is used to deploy the application. It is recommended to use a './deploy/local.properties' file to store environment settings for the local environment before running the following commands.
./ml local bootstrap
./ml local deploy modules
On Windows, that would be:
ml.bat local bootstrap
ml.bat local deploy modules
Edit ./local.json
to set your desired ports
gulp serve-local # this will watch the .less file for changes, compile them to .css, and run the node server
Installation and deployment on server
See etc/INSTALL.md
Data
Edit './import-data.sh' to set your environment settings then run the script:
./import-data.sh