rjrudin / slush-marklogic-spring-boot Goto Github PK
View Code? Open in Web Editor NEWslush generator for an Angular/Spring Boot/MarkLogic application
License: Other
slush generator for an Angular/Spring Boot/MarkLogic application
License: Other
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) {
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)
If a user switches to basic, the DevConfig.java class still creates DatabaseClient objects using DIGEST auth.
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..
"all" options can have a collection constraint by default, which is a useful facet to have that can be easily removed as well.
Should include an abstract base class and one concrete class as an example
Should use tab size of 4 for *.java
And let's use tabs instead of spaces too
Can do everything via gulp-gulp and gulp-exec
Change :
"vkbeautify-wrapper": "*",
To:
"vkbeautify-wrapper": "https://github.com/vkiryukhin/vkBeautify.git",
(git repo seems to have moved, results in bower install fail)
might be a good idea to fork this project
The way properties are read in from application.properties is superceding the command line, which is no good.
As a developer
I want to TITLE
So that I can easily deploy the application to a server
Steps
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.
Need to use 0.2.0 instead of 0.1.2
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
Based on the issue here: https://github.com/getnikola/nikola/issues/2790
It might make more sense to do an alternative configuration that utilizes npm instead of bower.
Can get rid of the hack in the App class
This will amongst others allow not well-formed xhtml to be used, e.g. plain html tags like <link>
without the />
..
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.
Should explain how to build it and run it
http://daveegrant.github.io/ml-esri-maps-ng/
May just need to provide instructions for using this.
https://docs.gradle.org/current/userguide/war_plugin.html
May need a property for configuring the base/@href element in each HTML template.
May need to default to path-relative URLs for JS/CSS and AJAX requests so that the WAR can be deployed in a non-root context.
Include the following in build.gradle:
springBoot {
executable = true
mainClass = "org.example.App"
}
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()
}
}
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.
Make it easy to run Camel while Spring Boot is running by showing where Camel files go, and even setting up a basic hot folder.
Need to have a default .gitignore file to exclude out the node_modules directory
It's on 2.11, should be at least 2.13
To make migration of ui code from slush-marklogic-node easier..
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
Something like this:
spring.resources.cache-period=3600
spring.resources.chain.enabled=true
The token seems to expire pretty quickly, and it's unexpected. It makes sense from a security perspective, but the error page doesn't look good in a demo.
By default, suggestions should go against all words - that can easily be customized
Seems reasonable to have this included by default
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
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.
Got some OBE stuff in it right now - e.g. all the client/* stuff
Add *.iml and .idea for Intellij users
Only use logback so Spring Boot doesn't complain about two logging implementations
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)
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.
Instead of having the "Migrate" tab in there
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.