Posts

Showing posts from 2014

How to set up a CoreOS cluster on Ubuntu server

Index: Step 1: Install Vagrant and VirtualBox (can be VMWare) Step 2: Clone coreos-vagrant repository Step 3: Config and start a cluster Step 1:  Install Vagrant and VirtualBox (can be VMWare) CoreOS, Linux for Massive Server Deployments. CoreOS is a new Linux distribution that has been re-architected to provide features needed to run modern infrastructure stacks. The strategies and architectures that influence CoreOS allow companies like Google, Facebook and Twitter to run their services at scale with high resilience. First of all, let's download some virtualization providers to run CoreOS.We are going to use VirtualBox/Vagrant to virtualize your cluster. Type this to start: $ sudo apt-get update && sudo apt-get dist-upgrade -y if, you are under a corporative proxy, you may not have connection to internet, so make sure your proxy is well configured. Configure proxy here VirtualBox After install VirtualBox let's make sure we have co...

How to implement OAuth 2.0 server with Redis

Image
Index: Step 1: Install XAMPP Step 2: Get OAuth 2.0 server Step 3: Setup OAuth 2.0 server in XAMPP Step 4: Install Redis Step 5: Create and feed token and users structures in Redis Step 6: Test OAuth 2.0 First of all Before you start with the implementation, take a look to this video tutorial. Understanding OAuth Community site :  http://oauth.net/ Additional to the videos above, I'll share you the OAuth 2.0 authorization flow to have a better idea how this thing works. Step 1: Install XAMPP To test your OAuth 2.0 server you can install XAMPP from here (skip this step if you have another application server that supports PHP 5.3.9+) Step 2: Get OAuth 2.0 server Get a functional OAuth 2.0 server from  here      Or clone it :) git clone https://github.com/Kodran/OAuth-2.0-server-with-redis.git Step 3: Setup OAuth 2.0 server in the web application root folder If you are working with XAMPP, go...

Deploying a Node.js app in Microsoft Azure using Git

Image
Index: Step 1: Analyze your app Step 2: Choose a Microsoft Azure environment Step 3: Initialize git repository Step 4: Push the app to the cloud Step 1: Analyze your app Hi :) First of all, you need to analyze your Node.js application goals in order to decide, what kind of solution you are going to choose in Microsoft Azure.  Microsoft Azure offers several ways to host web sites:  Azure Websites ,  Cloud Services , and  Virtual Machines . Let's make easy to know how to do this. Source: http://azure.microsoft.com/enus/documentation/articles/choose-web-site-cloud-service-vm/ Step 2:  Choose a Microsoft Azure environment So, basically Microsoft  Azure offers three cloud deployment models for applications to be deployed in any of the eight Microsoft global datacenters: Virtual Machines (VMs), Cloud Services and Web Sites. The most appropriate deployment model depends on the level ...