Skip to main content


Showing posts from 2016

Meteor 101 - Simple scalable example - Part1

Meteor is fast growing java script framework that provides : 1- Rapid development, by writing less code 2- One Language everywhere (JS) 3- Reactive rendering html templates for single page apps 4- Single code for web & mobile 5- it has built in package management 6- Live clients, always connected [server push to clients instantly, through publish/subscriber] and here is my first from scratch app using meteor. I'll keep this short and cut to chase and I'll go in details when required Source code here : you should first do: 1- install meteor 2- make directory for the project A. Project skeleton: navigate to the project directory and run > meteor create meteor101 you will get 3 files and folder called .meteor delete the 3 files and create the following dirs: Meteor Tip: Meteor is a convention over configuration framework, for example specific names for folders in the project structure indicate somethi

Spring Data very simple example with Postgres

Hi Folks Today it's again about server technologies and data persistence, but with spring-data project. This project aims to eliminate boilerplate code required to create the data tier, and not only that, it also eliminate the code required by ORMs like hibernate to manage session and entity manager and everything we used to do to persist our data. enough talking. technologies used : a- spring data b- spring mvc for simple rest api c- hibernate as JPA provider d- gradle for build management e- ide of your preference, I used intellj in this one. d- postgres as db  1- Business as usual we need a simple project structure, I'll keep it simple but scalable :   spring-data-sample (contains gradle root stuff: build, settings) | ------ bl : data and business tier, merged together as we don't have any code for data! | ------ web : where we expose bl with rest apis  2- setup the database, and by that you only need to install postgres and prepare the d