Posts

REST FRAMEWORK WEB DEVELOPMENT

Image
A RESTful API is an application program interface ( API ) that uses HTTP requests to GET, PUT, POST and DELETE data. A RESTful API -- also referred to as a RESTful web service or REST API -- is based on representational state transfer ( REST ) technology, an architectural style and approach to communications often used in  web services  development. REST technology is generally preferred to the more robust Simple Object Access Protocol (SOAP) technology because REST leverages less   bandwidth , making it more suitable for internet usage. An API for a website is   code   that allows two software programs to communicate with each another . The API spells out the proper way for a developer to write a program requesting services from an operating system or other application. This video by Kevin Babcock details RESTful API design and related HTTP concepts. The REST used by browsers can be thought of as the language of the internet. With cloud use on th...

Solid Principles

Image
This article aims to give a  solid  explanation of SOLID Principles and give some insight on their benefits and potential issues when applying them. Let’s go through each of them briefly. S — Single Responsibility Principle(S.R.P) A class should have one, and only one, reason to change. When requirements change, this implies that the code has to undergo some reconstruction, meaning that the classes have to be modified. The more responsibilities a class has, the more change requests it will get, and the harder those changes will be to implement. The responsibilities of a class are coupled to each-other, as changes in one of the responsibilities may result in additional changes in order for the other responsibilities to be handled properly by that class. What is a responsibility?! A responsibility can be defined as a reason for change. Whenever we think that some part of our code is potentially a responsibility, we should consider separating it from the class....

Software Continuous Deployment

Image
What You Should Know About Continuous Deployment Software DevOps emerged as the result of companies’ desire to shorten the software development lifecycle. The goal behind DevOps is to create a more responsive development, update, and upkeep strategy, as well as to keep development objectives in constant alignment with business ones. Continuous integration, continuous delivery, and continuous deployment were born to promote more agile strategies on the development side. The theory behind each are as follows: Continuous integration:  Merging all your developers’ code into one central repository at regular intervals to avoid code conflicts Continuous delivery:  Keeping code constantly ready for deployment without pushing it into production Continuous deployment:  Automatically pushing code updates into production after successfully passing testing Often, the term CI/CD is used to mean continuous integration/continuous delivery—ignoring continuous deployment—b...

Deploy Django app on a shared host

Image
This post is about deploying a Django application on Linux shared hosting using Cpanel. I will be guiding you step by step in the process of deploying a new or an existing Django app on shared hosting. Table of Contents Why Shared Hosting? Check if your hosting is compatible Deploy a Django App Deploy in 5 minutes Frequently Asked Questions Useful Links Why Shared Hosting? When it comes to deploying Django applications, you have many options available. Deploying on shared hosting might not be the best option overall but it surely has some advantages. The most prominent advantage is cost. Popular options like pythonanywhere or heroku 5$ to 7$ a month on the basic plan which could limit the RAM usage at 512MB and disk usage at 1GB. However, you can get a shared hosting which gives you 1 GB RAM and 20GB SSD for as less as  1.44$ a month . In addition to this, if you already have a website on shared hosting, you do not need to spend anything at all. Check ...