All Blogs
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Kiprosh
is now part of
LawLytics
Written by Kiprosh, team of passionate and disciplined craftsmen turning your ideas into reality.
Firstly, we all might have or might not have heard about migration files. It's okay let me share you something. For that we should have some basic knowledge regarding migration. what are the migration files and their purpose? Migrations are used to modify your database schema over time and to tell the database about expected structure to have. Phoenix provides many helpers for migrating the database, allowing developers to use Elixir to alter their storage in a way that is database independent. While working on project I had to create one table in existing database. So I did like as
In previous articles, we have seen how to setup droplet on DO and installation of Nginx with the passenger. Capistrano provides you advanced tools to deploy your applications on the web server. It also allows you to perform pre and post-deployment steps such as restarting a web server, running migrations, deleting cache, etc. You can also write your custom task to run while deployment. Capistrano takes your code from version control such as Git and copies it onto your server via SSH. In this article, we will, be covering basic steps to deploy your application on a single server from
As a Developer, you have many challenges while you are working with many environments and endpoint in the same project. Without environment setup, you have to set the endpoint and certificate every time for a different environment. If we Configure Xcode for the different environment, It takes care of all endpoint, certificate and bundle ids. so the user can test all beta, dev and live app on the same device. So, let's start with creating Endpoint Endpoint Configuration The first thing that you have to do is prepare Xcode configurations for the environment you want to use. In this post,
Slack API provides Slack Incoming Webhook to easily send data on slack in real time. We just need to follow some steps and we are ready to send messages on slack. Setup Slack Incoming Webhook Integration into the slack workspace: On page we can see the form to create Incoming Webhook Integration. Select channel on which you want to send a notification from the dropdown or you can create a new channel by clicking on the link create new channel. Configuration Setting: After submitting the form you will redirect to page Edit Configuration. On this page, We can see Setup
One of our production web application runs on a dedicated node in DO (Digital Ocean) cloud server. This web application has following services running. Elixir Phoenix API server React.js client server Redis caching server Bots (Slack) Few days back, Digital Ocean triggered an urgent maintenance for Meltdown and Spectre Mitigations resulting into a reboot of our PROD server. DO did alert us in advance by sending an email notification with schedules. But seems we missed these schedules accidentally. Thus, our PROD web application was suddenly down after this auto reboot / restart by DO forced maintenance. We realised that we
In the previous article we had seen how to install Umbraco in visual studio. In this article we will discuss about the concepts needed to start creating web site and publishing content. To create content and pages we must know 3 basic elements in Umbraco: 1. Document type: It refers to type of content to be stored. Document type contains different property editors like rich text editor, media picker, content picker and grid editor. Property editors define what kind of data is to be stored . We can also create property editors by creating new data type. Umbraco give us freedom
Although nowadays we have Email, SMS services integrated in most of web applications, sometimes there could be need of documentation for future reference which users may want to reuse later based on their need. Similar requirement we had in one of our web application where we wanted to provide option to user to generate single or bulk PDF files out of any HTML templates they have in their account. There was different features around the generation of PDF document but major work was involved in generation of PDF out of HTML which is also not difficult task when we have
To start with lets us take up the two most important questions, “What” and “Why” What is Repository Pattern? Repository pattern is basically a layer to separate the Data access logic, thus avoiding duplication of Data Access Logic. It has direct access to Database, ORM etc. The repository behaves like a collection of data to which we can add, delete and update objects. Why use Repository Pattern? Let us take the example of an MVC application with Entity Framework, now in case of a basic application, we use database context directly inside our controllers, but this creates a tight coupling
So to start with, most important Concept, that is misunderstood as an unnecessary task by most of the developers – Unit Testing!!! First, let us understand why it is very necessary for a developer to write unit test cases? Deployment: The most basic reason why test cases are written is, when we work in a team, many developers are contributing to the code base, and sometimes even on same modules. In such scenarios, if any developer checks-in a piece of code that breaks the functionality of certain module, unit test cases is the first line of call which alerts us about
JavaScript modules are the most used design pattern to keep your code separate from your components which provides loose coupling to your code. Modules are JavaScript classes, which provides protection of states and behaviours from being accessed by other classes. The module pattern allows for public and private access levels. This is how the code looks like: (function() { // declare private variables and/or functions return { // declare public variables and/or functions } })(); Here we have to instantiate the private variables and functions before returning our object. Code outside of our function is unable to access these private variables since it is