Building a CI/CD environment with Bitbucket pipelines && Docker && AWS ECS for an Angular app

Building a CI/CD environment with Bitbucket pipelines && Docker && AWS ECS for an Angular app

A good developer workflow will give your team a huge advantage over competitors, it allows your developers to focus on creating new features, tests. If your team has bad workflow and doesn’t have automated tests, automated deployment, developers will have to wait for the guy with the ssh key to the Linux box to deploy the code, only to find out after trying it out that it doesn’t work properly because there aren’t sufficient tests or someone forgot to run them.  This happening every day will…

Read More Read More

5 Most important new features of ES6

5 Most important new features of ES6

Whether you’re working or preparing for an interview where you might get some tricky questions about JS the following 5 features can prove to be useful. The ECMAScript6 (ES6) final specification was released in 2015 July, since then it’s supported in Node, new browsers and you can transpile the code to ES5 with babel to be compatible with older browsers. Let’s get to it. 1. Let and const, block-scoped variables. On a high level, using const and let will result in a more…

Read More Read More

A practical introduction into functional programming with JavaScript.

A practical introduction into functional programming with JavaScript.

Many articles talk about advanced functional programming topics, but I want to show you simple and useful code that you can use in the day to day developer life. I’ve chosen JavaScript because you can run it almost everywhere and it’s well suited for functional programming. Two of the reasons why it’s so great are that functions are first class citizens and you can create higher-order functions with it. Update: You can also read this post on DZone. Higher order functions…

Read More Read More

Current state of our home project

Current state of our home project

Quick overview Last summer me and my cousin started to work on our idea to crawl the comments of the internet and harness the data from it. Our current goal is to help the marketers to get useful insights from our data about the effects of their campaigns, releases, and presence in the digital world. For example, a Chinese brand releases new phones. How do they get info about their users feedback? Besides looking at the numbers of the sales,…

Read More Read More

Best lightweight GIT service for your Raspberry/SOHO server

Best lightweight GIT service for your Raspberry/SOHO server

Not a paid ad. Finally found what I’ve been looking for, GITEA. Its love at first sight, not only because of the beautiful UI, but because it doesn’t use SO MUCH GODDAMN MEMORY which is expensive in the cloud for such a mundane thing as version management. For the past years, I have had gitlab/bitbucket/stash servers for my personal projects but they used too much memory, considering that the server was used only by 2 people tops (gitlab recommends 4…

Read More Read More

How to offload cpu heavy code to lambda with Nodejs

How to offload cpu heavy code to lambda with Nodejs

The title, says it all, but basically if you have a small service (in this case written with nodejs) running on a server with limited capabilities, you might run into problems if you want to do processor/memory heavy computations. For this can be a solution to offload the work to lambda, which can scale automatically, and you only have to pay for computation, so basically if you rarely need the computation, instead of renting a server you can do this…

Read More Read More

Nginx https load balancer with lets encrypt cert (On AWS)

Nginx https load balancer with lets encrypt cert (On AWS)

Part 1: Create a working http load balancer I’v decided to use amazon for hosting my (Ubuntu 14.04 trusty) server (t2.nano (still an overkill, anything with 256 mb ram is more than sufficent)) you have to create a security profile which opens port 22 for ssh, 80 for http, and 443 for https. ssh into your server. Fetches the updates from the server, downloads nginx, apt-get update & upgrade, sudo apt-get install nginx Backup the config file, it is always…

Read More Read More