Arbitrary SQL during unit tests

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 curam.util.transaction.TransactionInfo .getInfo().getInfoConnection() and operations against the database during the transaction can be performed on it.
Continue reading Arbitrary SQL during unit tests

A Meteor Collection approach

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

Upgrading Meteor application from Angular 1.X to Angular 2.0

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

Continuous Integration for Meteor with Travis

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

Publishing Meteor Application API documentation

For Java projects, JavaDoc has been the standard tool to generate API documentation. On JavaScript/Meteor frameworks, there isn’t a standard one and there are several different projects that try to support it, though the tagging is pretty much the same as JavaDoc. When developing an application, it is generally a good idea to have some form of API documentation generation as part of your development workflow; Meteor is no exception. This post talks about using gulp along with a documentation generator tool for a Meteor project.
Continue reading Publishing Meteor Application API documentation

Mini-style guide for AngularJS and 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

Minor performance boost 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

Curam PDF Downloads

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