Angular 2 and React components interacting within a single app.

Angular 2 and React components interacting within a single app.

There has been a lot of discussion about JavaScript frameworks for the modern web applications. There are two main players in this area - Angular 2 and React. Both of these frameworks backed respectively by Google and Facebook are game changers in terms of developer experience. I've had a fantastic opportunity to work with Angular 2 since it was an early Beta (Many thanks to people that made that possible!). I have recently spent some time with React too. I think that its main advantage over Angular 2 is much lower footprint on the application. So in my opinion both…

Read More

Running  Linux on Windows with SSH connectivity

Running Linux on Windows with SSH connectivity

Ever needed to test your application locally on production matching software stack? Developing on Windows and deploying to Linux may require to run Linux as a guest on your Windows host OS. There are great tools allowing to do this quickly and hassle-free. This post will showcase setting up Ubuntu 14.04 LTS as a guest OS on Windows 10 dev machine with Oracle VM Virtual Box. Install Oracle VM VirtualBox and download Ubuntu ISO Image. Create a partition for your Linux OS. I would suggest this partition having no less than 8GB. A detailed information about creating disk partitions…

Read More

Initial security measures for a web facing Linux server

Lesson learned. Even if you are hot-tempered and can't wait to get your application out, do not forget to review your server's security configuration before attaching a public domain to it. Even basic things like leaving a few ports open can become an open door for an attacker to execute an exploit against an application listening on that port. This post covers the measures I took after my newly set up server was attacked. I should have done this before, but I didn't so I had to pay the price for this mistake - my websites were down for a…

Read More

Running your Node.js application as a system service on Linux with Upstart

I recently went through an exercise of deploying a Node.js application on Linux (Ubuntu 14.04) and I would like to share this tip with anyone who may require an information on how to run a Node.js application as a service on Linux OS, so the application will run normally when user exits the SSH console. There are many ways this can be achieved with applications like pm2, forever or nohup, but this post will focus on Upstart. Upstart is an event-based replacement for the /sbin/init daemon which handles starting of tasks and services during boot, stopping…

Read More

Linux commands handy for web application deployments.

Do you need to be a Linux expert do deploy your application in the cloud? Short answer is - No. I have been playing a lot with public cloud platforms recently while looking for a perfect production environment for Bushido, and I must admit that Linux is the most popular OS for the cloud. Pretty much every cloud provider supports Linux images - and it makes sense to use this OS due to its undisputed advantages like stability, performance, security and the most important to me - its open source policy. Bushido beta was first running on Google Cloud, but…

Read More