0

Scaffolding application templates using Yeoman.io

When you quickly need to create a new application starting every time from scratch can be a pain in the back side 🙂 But have no fear – there is a really nice service called Yeoman available here (  http://yeoman.io/ ).

Based on community best practices it acts as “generator” of all what you need to start your new app. Since I’m using MacBook nowadays – we will go through installation on that platform.

brew install node

 

Once done we can install yeoman and for demo purposes generator for hubot

npm install -g yo generator-hubot

 

And there it is 😉 from this point onwards we just just create our apps – easily and whats most import on demand! Let’s start with something simple like Hubot

mkdir myhubot
cd myhubot
yo hubot

yeoman_hubot

 

 

 

And off it goes 😉 Now the possibilities are broader and for example starting with c# app or angular is as easy as discovering them here ( generators ) . Try it 🙂

0

Installing KVM on CentOS 7 with Chef

Some time ago I have made decision that I will be running my own hardware to get learning curve on different level. This has already happened and in one of my previous posts you could have read that I got the server assembled and it is running. Of course if you are interested in more details look below.

Previously I have been using extensively Ansible but since some time I’m learning Chef. So taking that into account this is one of my first cookbooks. For this reason it is extremely simple. It is just installing base packages and couple of extra ones which you may find useful.

If you run the cookbook the output would be looking similar to this one :

chef_kvm_01

 

This is really simple run-book. I will be trying to extend it along side of server development. If you will have some comments for improvements feel free to make a pull requests . Complete repository is available in Github repo