Porting EventStore ClientAPI to Node.js / Port du client .Net de EventStore vers Node.js

During downtime between contracts, I started working a port of EventStore ClientAPI to Node.js. Main reason behind it was that existing clients didn’t provide complete functionality. So what better way to have full functionality than to port the original client itself. You can find the open source code at https://github.com/nicdex/eventstore-node.

Pendant les périodes mortes entre contrats, j’ai commencé à porter le client .Net de l’EventStore vers Node.js. La principale raison derrière ce project est que tous les clients existants n’ont pas toutes les fonctionnalités. Alors quelle meilleure façon pour avoir toutes les fonctionnalités que de porter le client original. Vous pouvez trouver le code open source à https://github.com/nicdex/eventstore-node.

Job change / Changement de job

I started working as a consultant for AdapTech Solutions in December 2015. If you’re looking for passionate technologists to help your organization excel, then contact me at nicolas <at> adaptechsolutions.ca.

Je commencé à travailler comme consultant chez AdapTech Solutions en décembre 2015. Si vous êtes à la recherche de technologistes passionnés pour aider votre organisation à exceller, alors contactez moi à nicolas <a commercial> adaptechsolutions.ca.

Overdue maintenance for vtu.cc / Maintenance de vtu.cc

I’ve done some overdue maintenance on vtu.cc my url forwarding service. It’s now up to 40k hits per month, not bad for a service I never advertise and that isn’t coming up on a google search

J’ai finalement fait la maintenance de vtu.cc mon service de redirection d’url. J’ai maintenant 40k visites par mois, c’est pas mal pour un service que je n’ai jamais annoncé et qui ne sort pas dans une recherche google 🙂

Les vacances de Noël approche et donc j’ai décidé de mettre un thème en conséquence sur mon blog. Sur ce rien de nouveau 😉

Holidays vacations are coming so I decided to update my blog theme. Not much else to say 😉

Deploy a full Castle (Core, Windsor, ActiveRecord, MonoRail3) app in the cloud using mono and mysql

The VM

I use Digital Ocean, their VM are fast, reliable and cheap. The 5$ one is good enough for starter and you can easily upgrade later on if you need more power.

Setting up the environment

MonoRail3 runs on .Net Framework 4.0 and for some reasons doesn’t play well with mono 2.10. So you need to install mono 3.0 and then set-up your app with mod_mono.

1. Install required packages for building mono 3.0
sudo apt-get install build-essential libgtk2.0-dev
2. Follow these steps here to build mono 3.0
3. Configure mod_mono
Simplest and efficient way is to use Mod_mono AutoHosting. Don’t forget to use mod_mono 4.

Setting up your Project

Using Visual Studio 2012 start a new Empty Web Application and add the following nu-get packages:
– Castle Windsor log4net integration
– Castle.Activeecord
– MySql.Data
– Castle MonoRail 3.0

Your Global class should inherit from MrBasedHttpApplication.

Add some routes and then you’re ready to go 🙂

Caveats

1. Enumerable in a view are not working (can’t GetEnumerator on type object error)

I’ve not seen this documented anywhere, but if you use an enumerable in a view you need to make your view inherit from blade typed viewpage like this:


@inherits Castle.MonoRail.Blade.ViewPage<IEnumerable<YourTypeHere>>

2. MonoRail2 did integrate seemlessly with Windsor even if it could work without it, didn’t find how to with MR3 yet.

I’ll keep looking around and post back.

Cheers,