Categories
Docker Programming Tutorials Web Dev

Step by step Tutorial on a Rails CRUD web application

In the last two episodes we saw how to create a simple web application using either Symfony or Laravel. Let’s do the same with Ruby on Rails. In this tutorial we’re gonna combine also another competence we developed in this series of tutorials: Docker.

Fist step, install Docker following this quick guide on the official website: https://docs.docker.com/install. It might be useful (if not necessary) a post installation for Docker, follow these instructions and everthing will work out: https://docs.docker.com/install/linux/linux-postinstall.

The next thing, install Docker Compose for the purpose of completing correctly this tutorial, you will find why as you go along with this reading: https://docs.docker.com/compose/install.

The Ruby programming language

Now that you have all up and running, all you have to do is to create a Ruby on Rails stack on your computer. Let’s start by creating a Docker file, so create a directory named rails_tutorial and put the following content on a file called Dockerfile (without any extension):

Categories
Laravel PHP Programming Tutorials Web Dev

Quick Laravel Tutorial on CRUD operations

In the last episode we saw how to create a simple web app with the use of Symfony, now we’re going to do the same thing, but this time we’re gonna do it with Laravel.

The Php programming language

Let’s begin with the installation, if you need more informations please refer to the Laravel documentation, type these commands on your shell:

Categories
PHP Programming Symfony Tutorials Web Dev

Easy Symfony Tutorial on CRUD operations

In this brief tutorial I’m gonna show you how to build a simple Symfony CRUD Web App, fully working.

We assume you have installed Symfony 3.4 on your machine, if not, please refer to one of my previous tutorials, at the following link.

The Symfony Php Framework

Read the following, https://www.benedict.cloud/2018/02/23/mini-tutorial-about-the-symfony-bundle-generator, on how to do it.

Categories
Admin Docker PHP Programming Tutorials Web Dev

Short Tutorial on Docker, PHP and MySQL

In this simple tutorial I’m gonna teach you some basic tricks about a skinny LAMP application containerized with Docker.

One of the main focuses of Docker is to solve a common problem in developing and deploying complex applications, which is known as “The Matrix from Hell”.

When designing an application stack which is more than trivial, you have to take care of the compatibility between different version of tools and languages and their dependecies, which have to coexist in the same machine.

The Docker virtual environment

With Docker, you solve this problem by instantiating different light-weight machines in a single host, without the need to create real virtual machines on the cloud and spending a lot more: a Docker container consumes a lot less resources.

Categories
Angular JavaScript Programming Tutorials Web Dev

How to create a new component in Angular 2

In this tutorial, which is meant for beginners, I’m gonna teach you the fundamentals of Angular 2, and in particular how to create a new component, the first thing when learning this framework.

The JavaScript programming language

These are the prerequisites: if you haven’t done before, go ahead and install Node.js https://nodejs.org from the main website, bundled with it you will find NPM, which is node package manager, you’re gonna need it. Then check if the installation was correct:

Categories
PHP Programming Symfony Tips Tutorials Web Dev

Mini Tutorial about the Symfony Bundle Generator

In this mini tutorial I’m gonna show you a little trick which can be useful in order to create a new bundle in Symfony.

If you choose to create a bundle yourself, there might not be problems, but if you want to use the bundle creator tool of Symfony, you may encounter some difficulties that can make you loose precious time.

The Symfony Php Framework

The first thing is to install Symfony, on your computer, here is the documentation: https://github.com/symfony/symfony-installer, but you can also follow this tutorial. We suppose we’re on Linux, but there’s a similar procedure on Windows:

Categories
Java Programming Tips

Twitter4j: a Java library to interact with the Twitter API

The Twitter API is one of which I love the most. Its simplicity and richness of functionalities make it a worthwhile experience for a programmer to do.

First and foremost you need to import the library into your Java project, you can do it with Eclipse via Maven, or you can use your preferred IDE, you can also import the library in your Android application through Gradle. Here is how to do it:

Twitter the social network

On your pom.xml on Eclipse: