Posts

AngularJS Controllers

AngularJS controllers control the data of an AngularJS application and a controller class is attached to the view.
A controller class can be attached to the view using the ng-controller directive. When this is added, AngularJS will instantiate a new Controller object. This object can be instantiated using the controller function after defining your module ...

Getting Started with AngularJS

AngularJS is a JavaScript framework used to development web applications. Getting started with AngularJS is easy, should you have a basic understanding of HTML, CSS and JavaScript.
Many users will be familiar with using jQuery when developing web applications. What is the difference between using the two? The primary difference is that when using jQuery, ...

Install an SSL Certificate on Linux

To install an SSL certificate on linux-like servers without using a control panel, SSH into your web server and run an openssl command to generate a CSR (Certificate Signing Request). The CSRidentifies which server will use your certificate, as well as the domain names (common names) you’ll use for the certificates.
The command will generate ...

Adding JavaScript in Magento 2

There are currently three ways of adding JavaScript in Magento 2 using RequireJS, which are presented by the three JS module types: plain module, jQuery widget and UIComponent.
Each type will require you to have set up a basic Magento module structure, including a requirejs-config.js file. For example, let’s assume that a custom.js file is ...

Authenticate a User in Swift

Here we take a look at how to authenticate a user in Swift using a MongoDB database connection. A basic example of this can be seen by creating a login screen within Xcode. Whilst the swift code within Xcode won’t contain any database connection details itself, the application will use URLs derived from a Node.js ...

Magento 2 Theme Development Part 2

Welcome to Magento 2 Theme Development Part 2. In this article, we look at continuing to edit our custom theme, including adding a static block, overriding and setting pages to use different templates.
From the first post of the theme development series, we added some text within a new template file that sat just underneath ...

Express.js Login Page Example

This post will look show an Express.js login page example using the EJS template engine and connecting to a MongoDB database.
This example will be using code from previous articles, so if you do not already know how to get started with Express.js or how to configure a route, go and check out how to ...

Configuring a MongoDB Connection in Expressjs

Configuring a MongoDB connection in Expressjs requires a few lines of code which can easily be placed within your node application. If you haven’t recently set up an Expressjs project, you can learn how to do so here.
Firstly, download the mongodb package.
$ npm install mongodb
This will download the package into your project’s ...

Magento 2 Theme Development

Welcome to the first part of the Magento 2 Theme Development series. This series will aim to assist developers in making several frontend development changes to a custom theme. The custom theme being created and used will be a child theme of the Magento/blank theme.
Note: If you haven’t already done so, set your store ...

Code Examples of Creating Objects in Swift

This article will look at a few code examples of creating objects in Swift 3 without using the Interface Builder. Whilst the IB in recent versions of Xcode has become more reliable and less buggy, many developers still wish to learn the code behind creating the view elements.
In addition to the Creating Elements using ...