GithubHelp home page GithubHelp logo

rjrudin / slush-marklogic-spring-boot Goto Github PK

View Code? Open in Web Editor NEW
10.0 10.0 7.0 5.24 MB

slush generator for an Angular/Spring Boot/MarkLogic application

License: Other

JavaScript 36.02% Java 11.60% HTML 26.14% CSS 9.72% XQuery 14.03% XSLT 2.50%
angular gradle java java-middle-tier marklogic slush-generator spring-boot

slush-marklogic-spring-boot's People

Contributors

rjrudin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

slush-marklogic-spring-boot's Issues

Login Error

Unknown provider: $modalProvider <- $modal <- loginService

Angular-bootstrap now refers to $modal as $uibModal

Resolution: login.service.js
LoginService.$inject = ['$http', '$uibModal', '$q', '$rootScope', '$state',
'$stateParams', 'messageBoardService', '$window'];
function LoginService($http, $modal, $q, $rootScope, $state, $stateParams, messageBoardService, $window) {

Error on slushfile.js Cannot read property name of undefined

Hi All,

I am trying to get up and running with this framework. I am running on a linux machine right now.

At the step that i am supposed to run the slush command, it is failing with a cannot read property 'name' of undefined

I am not sure how to fix this or why it is happening.

Error Message :

/opt $ cd nbcu-ml-spring-boot/ && slush marklogic-spring-boot
/usr/local/lib/node_modules/slush-marklogic-spring-boot/slushfile.js:50
        authorName: user.name || '',
                        ^

TypeError: Cannot read property 'name' of undefined
    at /usr/local/lib/node_modules/slush-marklogic-spring-boot/slushfile.js:50:25
    at Object.<anonymous> (/usr/local/lib/node_modules/slush-marklogic-spring-boot/slushfile.js:53:3)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Liftoff.handleArguments (/usr/local/lib/node_modules/slush/bin/slush.js:90:3)

Make Login success send a relative Location header

When running the middle-tier behind a proxy like httpd, Location header is not automatically rewritten. One can rewrite that header with httpd using something like:

Header edit Location "(^http[s]?://)([^/]+)" ""

But it would be easier if the middle-tier sends a relative Location header at login success..

Add collection constraint

"all" options can have a collection constraint by default, which is a useful facet to have that can be easily removed as well.

Deploy the custom application

As a developer
I want to TITLE
So that I can easily deploy the application to a server

Steps

  1. Include application plugin for build.gradle file
  2. Include the mlcp jar files to support upload functionality. If these files are not included then the upload form will not work when deploying the application

Package as WAR for deployment

Hi All,

I have been struggling to learn how to turn this into a WAR file for dedicated deployment. I have tried using the build files, but it appears that the structure that is output is not valid. Is there an way to convert this into a WAR file / webapp directory structure.

Enhance docs with regards to prereqs

I just ran through the setup on a windows box. I suggest updating the pre-reqs to list out the following:

Jdk (vs jre)
Gradle
Node 4.x+
Gulp
Bower
Slush
Git <= Needed for Bower to run

Allow legacy html templates

This will amongst others allow not well-formed xhtml to be used, e.g. plain html tags like <link> without the />..

Ensure login dialog always appears as full page

When a user's session ends in Spring Boot, a login request is sent. But sometimes - not all the time - this shows up within the current page. When the user submits the login form, the app breaks - the user gets back an image instead of a page.

Ideally, there's a way to intercept that login request in Angular and ensure the user is sent to a full login page.

Include example mlcp task

Should include ImportTask for convenience (this could really go into ml-gradle too):

class ImportTask extends com.marklogic.gradle.task.MlcpTask {

@TaskAction
@Override
public void exec() {
    setClasspath(project.configurations.mlcp)
    setCommand("IMPORT")
    setPort(project.mlAppConfig.restPort)
    setDatabase(project.mlAppConfig.contentDatabaseName)
    setOutput_permissions("rest-reader,read,rest-writer,update")
    super.exec()
}

}

Add form for transforming data via Spring Batch

Can be accessed in header via "Transform"

Can have a text area for the URIs query and a text area for the transform query.

Let a user reference uris/transform modules too. But the main use case is for showing how data can be transformed on the fly via ad hoc queries.

First time installation steps

For a fresh machine installation of the pre-requisites:

Git (required by Bower) requires 1st time Git Setup steps:
$ git config --global user.name "John Doe"
$ git config --global user.email [email protected]

Wiredep needs to be installed/configured:
npm install --save wiredep
bower install --save jquery

Add mlWatch to the Spring Boot app

It's turning out that running gradle bootRun with hot-reloading is the way to go, because hot-reloading in Eclipse keeps screwing up Eclipse.

But if we're running gradle bootRun, we can't run gradle mlWatch at the same time.

Solution, hopefully - add a dev-only option to the Boot webapp to do what mlWatch is doing.

Cleanup gitignore file

Got some OBE stuff in it right now - e.g. all the client/* stuff

Add *.iml and .idea for Intellij users

Download.xsl not found

I'm seeing this warning in the Spring Boot log files

12:34:51.479 [pool-1-thread-1] WARN c.m.c.m.i.DefaultExtensionMetadataProvider - Unable to build metadata from resource file: file:/home/sstafford/grey/src/main/ml-modules/transforms/download.xsl; cause: /home/sstafford/grey/src/main/ml-modules/transforms/metadata/download.xml (No such file or directory)

Dynamic configurations in xquery resource

Hi All,

I created a resource at src/main/ml-modules/ext/resource.xqy.

This resource requires a dynamic setting, depending on which environment I am deploying to. Is there a way to read the application.properties file, and leverage those variables within the xquery resource so that I can properly automate deployments across environments etc?

For instance, I would like to be able to read the mlHost and mlRestPort variables from the application.properties file, at deployment time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.