/ml-seed-gulp

AngularJS seed application for MarkLogic

Primary LanguageJavaScript

ml-seed-gulp


This is an Angular.js App and is powered by Boom Angular Generator.
This repository helps for getting started with AngularJS with MarkLogic REST api using the following components:

  • gulp as build system
  • eslint as JavaScript linter
  • Bootstrap 3 css (sass version)

Installation

Documentation in progress

Install the Boom Generator first.

    git clone [clone-url] app
    cd app

Install Boom Angular Generator

    npm install -g generator-boom

Then install all develpment dependencies

    npm start

Finally, fire up the server

    gulp

Thats it!

Additional changes in gulp script

  • Add http proxy for MarkLogic REST api in dev mode. Update settings.marklogic.baseRestUri in gulpfile.js
  • NodeJS proxy ressources [1], [2].
  • Requires node-sass 0.8.3 or above [3].
  • Requires eslint (should be automatically installed by gulp-eslint)
  • Include unit tests with Karma Test Runner. Tests should be stored in tests/unit (Note Boom generator does not provide a command to create them).

[1] - https://blog.nodejitsu.com/http-proxy-middlewares/
[2] - https://github.com/nodejitsu/node-http-proxy
[3] - https://github.com/andrew/node-sass/releases/tag/v0.8.3