When writing unit tests using Curam, it could be useful to inject some SQL to perform read and writes to the database, especially since the unit test would roll back database changes after the test. The actual JDBC
java.sql.Connection connection object used during the test, can be retrieved using
.getInfo().getInfoConnection() and operations against the database during the transaction can be performed on it.
Continue reading Arbitrary SQL during unit tests
In perusing the Meteor guide section on securing methods with validated-method I didn’t like the way clients had to implemented it and to use it as well. For one it’s not very OO and relies on the fact that you can change behaviour of any part of Ecmascript code. So I wrote up my own implementation that ended in tasks.js in Meteor boilerplate.
Continue reading A Meteor Collection approach
From Angular 2: Upgrading from 1.x.
Having an existing Angular 1 application doesn’t mean that we can’t begin enjoying everything Angular 2 has to offer. That’s because Angular 2 comes with built-in tools for migrating Angular 1 projects over to the Angular 2 platform.
This post shows how to upgrade an Meteor app using Angular 1.x (for this post I am using Meteor Boilerplate angular branch) to use Angular 2.0.
Continue reading Upgrading Meteor application from Angular 1.X to Angular 2.0
The Curam case reassessment process when triggered from the UI a deferred process. However, if you are running unit tests or batch scripts the process needs to be synchronous.
Continue reading Synchronously running a case reassement
Setting up a continuous integration system for your application regardless if it is Meteor or not is generally a good idea as it will help detect errors sooner than later. Travis on Github has one extra nice feature that one of my old projects had to explicitly implement for me on Jenkins a few years back and that is “Pull Request” builds. Travis’ build system is pretty simple which makes it an ideal candidate for less structured builds. For structured enterprise builds like those with Maven I would still recommend Jenkins overall. This post describes how to set up a Meteor project to work with Travis.
Continue reading Continuous Integration for Meteor with Travis
gulp along with a documentation generator tool for a Meteor project.
Continue reading Publishing Meteor Application API documentation
Meteor by design will process and eagerly load any .js file that is in your project short of the ones in
imports and those prefixed by
.. The problem is that if you put in your gulpfile.js it will process it and load up the resources that it required at the runtime of your application. This post details how to get around that.
Continue reading Using gulp with Meteor
Since I started working on Meteor back just shortly before 1.3 was released, I have been playing around with ES6 modules and imports along with the ng-annotate capability. This is a brief style guide I have for AngularJS and Meteor based on my findings. I may change this over the course of time as I learn more but this is what I have come up with so far.
Continue reading Mini-style guide for AngularJS and Meteor
One of my habits when I do JEE development is to always try to run it as close to production state as possible. This may mean a longer time for me to do testing because the build and deployment cycles are longer, but at least I am more confident in what I build as a large subset of integration issues would come up by this habit. Switching context to AngularJS, they provide a guide on how to improve performance in production . This is a short post on how to take advantage of it in Meteor.
Continue reading Minor performance boost for AngularJS and Meteor
This is fourth and final part of a series discussing how to generate PDFs in Curam. The previous parts had discussed how to create an automated test that would be used to test the PDF creation facility of Curam and how to pass application data to the XSL templates and how to set up templates in the database. In this part, the PDF Service will injected into a facade and tied to the client so the user can download the PDF. Continue reading Curam PDF Downloads