Servage Magazine

Information about YOUR hosting company – where we give you a clear picture of what we think and do!

Articles Tagged ‘development’

Hybrid mobile application with Ionic

Sunday, August 27th, 2017 by Servage
ionicIonic is a framework created with Angular for building cross-platform mobile applications using web technologies. The main language for developing with Ionic is TypeScript, which is based on JavaScript. Ionic allows you to create applications for the most popular mobile operating systems by maintaining only a single code base. Getting Started If you have used Angular before, getting started with Ionic is easy. If not, don’t worry—there’s only a few commands to run and your first project will be up and running. The recommended way to create a new Ionic project is to use the Ionic CLI which is a tool similar to the Angular CLI. It can be used to not only create ...

What does it take to build an API?

Tuesday, August 22nd, 2017 by Servage
api-cloudBuilding a fully functional API consists of multiple pieces that are eventually connected together, such as authentication, integration with external services and the core application logic. In this article we will see what it takes to build a full API and what you should consider when the time comes to build one. Authentication If you application has user accounts, you will need to handle authentication with your API. The first thing you should do is decide how users authenticate. Is it a traditional username and password combination, an API key, or perhaps something more advanced like OAuth 2? Either way, if your application handles login details, you should also set up an SSL ...

Webpack demystified

Saturday, July 29th, 2017 by Servage
Unknown-1Webpack is one of the must-know tools for front-end developers who are working with Node.js. Webpack is a module bundler for JavaScript assets. However, it is also capable of doing much more than just that, making it a rather big and complex tool. Let’s clear the confusion around the many features of Webpack by checking what it’s most commonly used for and how it all works. Bundling Files One of the primary features of webpack is to bundle JavaScript files together. These files are often written by you and include npm packages that your application depends on. Webpack takes the files and dependencies and builds one JavaScript file, often called a bundle, from ...

Learn about OAUTH

Thursday, July 20th, 2017 by Servage
oauthOAuth is an authorization standard that can be found on websites, APIs, web applications built with React or AngularJS and more. OAuth is often used to let other websites access user information on another website. OAuth can be used for various types of authorization, so let’s see how it works in more detail. Why OAuth? As mentioned previously, OAuth gives a website access to a user’s profile information on another website. When you sign up on a website, you have likely seen the option to sign up using your Google, Facebook or other account. In these cases, the signup process is handled by OAuth and your personal information, such as your name and ...

Top Git Clients for Developers

Tuesday, May 16th, 2017 by Servage
gitUsing a version control system (VCS) is one of the most valuable tools for a developer. If you code every day, you likely use Git or some other VCS daily too, or at least you should. Because Git is a big part of a developer’s daily workflow, it is good to choose your Git client wisely. So, let’s find out what are the pros and cons of some popular Git clients to find out the best one for you. SourceTree SourceTree is one of the most popular Git clients out there. It has a good graph tree feature to track what’s happening inside a project and all of its branches. SourceTree supports all ...

Common design-patterns explained

Tuesday, May 2nd, 2017 by Servage
design-patternsDesign patterns are used in software design to overcome common problems. For instance, what if you need a class that handles all database connections and you want to be able to create only one instance of that class? This is where design patterns are handy. They help you solve common design problems with universal solutions that you can also find in other applications. Singleton Pattern Let’s start with a simple pattern. Singleton is a design pattern whose purpose is to keep only one instance of a class. This way, there is no need to instantiate a new object every time you call a method. A singleton class can be created by making the constructor ...

Testing APIs with mock data

Wednesday, April 5th, 2017 by Servage
api-mockIt is common to see a front-end application that gets its data from a back-end API. If you are working on one and don’t have a working API yet, where could you get data to test your application? You could always hardcode some fake data into the application itself, but what if you could use a real API and real HTTP requests instead? Let’s look into some free API mocking services that allow you to do this. JSONPlaceholder jsonplaceholder.typicode.com is an API testing service with a set of commonly used data. You can fetch users, posts, todos and even photos and their thumbnails from the API. In some cases, all type of data ...

Comparing development environments

Sunday, April 2nd, 2017 by Servage
development-environmentWhen it comes to web development, there are many development environments to choose from. Roughly speaking, a development environment means the computer on which you run the applications you are developing. Such a computer can be virtual or physical and local or remote. This time we will compare popular development environments, such as Vagrant, and see what advantages and disadvantages each has. Vagrant Vagrant is one of the newest and most used development environments by professional developers. Here is how it works: You install Vagrant and a virtualization environment compatible with it, either VirtualBox or VMWare. Next, you open a command line and tell Vagrant which type of development environment you would like ...

Code linting explained

Friday, March 17th, 2017 by Servage
codeLinting is a term you hear every now and then, but what does it mean? Linting is related to source code analysis, which is something you should do for your code as you develop. After reading this article you will be more familiar with these things. Let’s find out what linting is and how to do it with CSS, JavaScript and PHP code. Linting Explained So, what is this mysterious “linting” people are sometimes talking about? Simply put, linting is a code review method where a program automatically analyses source code to detect issues. Lint was the name given for a C program that was used for this type of code analysis decades ...

Best IDEs and editors for web development

Saturday, March 11th, 2017 by Servage
code-editorA code editor is one of the most important tools of a web developer. It can save you from excessive typing, logical code errors, typos and can provide suggestions for better code. Therefore, you should pay attention to your code editor of choice. We have collected a list of IDEs and tools that are often preferred by professionals as well as editors that were the most popular in 2016. PhpStorm and WebStorm These two development environments are commonly found in companies. PhpStorm is a great choice for PHP development while WebStorm is targeted for JavaScript developers. Both of them also support HTML and CSS, and PhpStorm also supports basic JavaScript. Both of the ...