Image for post
Image for post

Setting new project on Firebase it is easy, same applies on Heroku, but it is important to keep your credentials on a secret place and avoid to be compromised.

It important that JSON file or JS object that you will issue from Firebase are kept outside your project folder and not being a part of a git repository.
*sending files within git, might get compromised if your repository becomes public or there is a breach on the git server


Image for post
Image for post
AppCenter and Azure DevOps

Most of the times we want to provide option to the client to be able to download and test the application before we submit it to the stores *it refers to mobile applications
Sometimes the initial development before an actual release version can take longer to be done, but that shouldn’t stop us from sending artifacts to the customers to test the applications while development.

At the moment both GooglePlay and AppStore are offering their individual services for testing, and when you work with Hybrid development it seems that it takes too much effort to publish version for testing purposes.
Having that in mind AppCenter (https://appcenter.ms) …


Image for post
Image for post

When you need to practice continuous deployment on a mini cloud with less or small effort — Heroku comes as handy platform to be used (+ it comes as free for many basic stuff).

So in this post you will have step by step instructions how to setup a the basics for a NodeJS project in less than 20 minutes.

Git repository

Heroku offers: two more basic integrations with Git (Heroku CLI and GitHub) and one a bit more advanced (Container Registry). Depends on your project you will choose the appropriate one. …


Image for post
Image for post

Dockers aren’t really a new thing around, but in many cases developers are spending time to create proper image or trying different Dockerfile configurations, or simply they don’t pay attention to re-usability and multi environment build.

Therefore I will try to explain step by step how to make reusable docker file where you can send different flags to get different angular builds.

*All mentioned files below, are into Angular project root folder

Dockerfile

Intent of the result is to work with a standalone frontend , that will communicate with backend over API or similar.

*You might need to modify some minor things inside the Dockerfile e.g node-alpine version or destination folder etc.


Reducing API response size

We are all well familiar with the REST API(s) and using them on a daily basis for development of various applications.

Even so there are many different patterns of how the API response can be optimized by using various techniques, also server cache etc. in most of the cases we ignore the fact that we (developers) are the cause of big size of the data returned back, because of duplication.

In most of the cases we have following json (example) response:

Image for post
Image for post

where almost 50% of the size of the data returned is taken by the object keys.

There is simple solution to overpass this issue and spend at least 30–50% less traffic in data transfers. By making following update of the sample…

About

Yoshevski

Long time in the IT field as fullstack developer.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store