Web Development

Assign automatically a role to a new user in Drupal 8

by luigi laezza | 28th September 2020 | Web Development | bundle, drupal, roles, automatic

We recently had a project that required users to automatically assign a role to new users base on the values passed by that user in the registration form.We created a module for that, auto_user_role, sorry if the name is not the best, but at the time it looked like a good name.The bundle is actually pretty useful, but we would like to know your opinion, we have released the code on github , please hit the link and let us know how we could improve it.

Building modular Javascript applications with Webpack

by luigi laezza | 28th September 2020 | Web Development | javascript, webpack

Webpack is a module bundler for modern JavaScript applications. It is incredibly configurable, and it is very easy to get started.Webpack creates a graph of all of your application’s dependencies, once you’ve bundled all of your assets together, it outputs a bundled code following the given configurations.Smashing Magazine recently has released a nice article to get yourself on the right track.Click here to get started.

Secure your SSH connection disabling SSH password logins

by luigi laezza | 5th October 2020 | Web Development | linux, ssh, ubuntu

First off, having to remember a password for each of your client's server it is quite daunting, so it might seem a good idea to store the password to your server access in a very secure spreadsheet file.Well, that is not a great idea, instead, you should secure the access to your server using an ssh key, this also will allow you to forget about a password and gaining access straight with a command line.So let’s start.First of all, you will have to create a key , if you haven’t already (this is a MAC guide, but using putty it...

Inexpensive stage lamp server with Raspberry PI3 and Ubunto server

by luigi laezza | 5th October 2020 | Web Development | php, ubuntu, raspberry pi

Have you ever been in the position of asking your self  “How much shall I spend for a development server?”, “Shall I get an inexpensive shared host?” , “Will it be enough for my needs?”, “Perhaps i should upgrade”… well ask no more.If you don’t expect much traffic, and you are on a tight budget, or simply you want to make more practice in maintaining a web server, why not going for a homemade web server.Raspberry Pi now I quit performing for a staging environment, and very very inexpensive. As a test we have got the Raspberry Pi 3 Official...

Mailtrap with symfony, testing emails has never been so easy

by luigi laezza | 5th October 2020 | Web Development | Magento, Symfony, mailtrap, smpt, Wordpress

Today I would like to write about a service that we use daily during development and pre-production, Mailtrap.Mailtrap is a fake SMTP server for development teams to test, view and share emails sent from the development and staging environments without spamming real customers.Setting it up is very easy and for 1 inbox is also free. Simply hit the registration page, and head to the default inbox.There you will see the inbox settings that can be used in your project. That’s it!To make your job even easier, Mailtrap has a very useful Integration drop down that will show you how easy...

Laravel 5.3 add multi-language functionality

by luigi laezza | 5th October 2020 | Web Development | Laravel, Locale, Middleware

During a recent project, we faced the issue of adding a multi-language functionality to our application.We store our Laravel applications on DigitalOcean, but this tutorial will work basically on any other hosting company.Using Laravel middlewares we found a quite easy and straightforward solution.In this tutorial, we will show you how to easily create your own.ADD AVAILABLE LOCALES IN THE CONFIGURATIONSIn order to allow only certain locales to work, simply add right below the locale key  in config/app.php the following array:'locales' => [ 'en' => 'English', 'it' => 'Italiano'],CREATE A CUSTOM MIDDLEWAREFirst, let’s create a custom middleware running the following command.php...

Lets encrypt! How to create free SSL certificates on Ubunto

by luigi laezza | 5th October 2020 | Web Development | ubuntu, ssl, encryption, certificate

SSL Certificates, sometimes called digital certificates, are used to establish a secure encrypted connection between a browser (user’s computer) and a server (website). The SSL connection protects sensitive data, such as credit card information, exchanged during each visit (session). Let’s Encrypt provides an easy way to obtain and install trusted certificates for free. In this guide, we will show how to create a free certificate using Let’s Encrypt on Ubuntu.

Sulu CMF

by luigi laezza | 5th October 2020 | Web Development | Symfony, CMF

Today I would like to talk about SULU CMF, which is at version 2.o.Sulu is a  is a fantastic project based on Symfony 2 full stack and other open-source application like PHPCR, Doctrine, Backbone.js, and Require.js.It is meant to help developers create multi-platform, multi-language, and multi-channel sites giving some boilerplate functionalities.Ah did I mention that it works great and it looks sleek ?! Check the gallery below and don’t forget to download the project to give it a try.INSTALLATIONTo begin with, you will need the code, which can be cloned from the sulu-standard repository on GitHub.$ git clone https://github.com/sulu-io/sulu-standard.gitAfter the...