Run Ansible Playbook from Jenkins
In our previous articles, we learned how to install Jenkins and Ansible and how to play with them. In this article, We are going to learn how to run Ansible Playbooks from Jenkins. You can run the Ansible playbook through Jenkins in multiple ways. In this tutorial we are going to learn about the default method which is best and the recommended method that Ansible to be configured on Jenkins Master to run Ansible job. Prerequisites Jenkins Server up and running You can follow this...
How to install Ansible on Ubuntu
In this article, We are going to learn how to install Ansible on Ubuntu. Ansible is a powerful automation and remote management tool that allows you to administer all your remote machines. It is cross-platform and can work on most machines with no requirements for additional software and also offers security by utilizing SSH and Python on remote machines to execute specified tasks. It supports two methods for managing remote machines: Ad hoc commands: This is the most common method...
Getting Started with Laravel in CodeLobster IDE
In this article, We are going to learn how to getting started with Laravel in CodeLobster IDE. Codelobster helps you to make a local Laravel installation quickly and effortlessly. There is no need to use the command line or download and run VirtualBox and Homestead virtual machine, which is larger than 2 GB. Prerequisites Professional programmers use it widely in their projects, so beginners also need to learn Laravel as soon as possible. For the work we need our IDE and the latest...
How to install Jenkins on Ubuntu-20-04
In this article, We are going to learn how to install Jenkins on Ubuntu 20-04. Jenkins is an Open Source Continuous Integration tool that written in Java. It is a free software that can be used to build, test, and deploy software. In this article I will explain how to install Jenkins on Ubuntu 20.04 as a standalone service. Installing Java Jenkins is written in Java and requires Java 8 or later to be installed on the system. We’ll install OpenJDK 11 , the open-source implementation of...
Deploy static website to Azure Web App using Github action
In this article, We are going to learn how to deploy a static website to Azure Static Web App using Github Action. Azure Static Web App is a web application that is hosted on Azure. It is a free service that allows you to host your website on Azure and get it to work with your Github Action workflow. Prerequisites GitHub Repository Azure Account Create a Static Web Application 1. Go to Microsoft Azure Web Portal 2. Select Static Web App 3. Select "Create" 4. In the Basics tab,...
How to Dockerize Node JS Application
In this article, We are going to dockerize a Node JS application. Docker enables you to run applications in a containerized environment. Docker containers are isolated from each other and from the host operating system. This means that you can run multiple containers on a single computer and they will all have their own private copy of the application code. Docker containers also isolate your application from the host operating system, so you can run the same application code on multiple...
Some Useful Laravel Packages
In this article, I will be sharing some useful Laravel packages that I have developed by myself with their usage and documentation. Sri Lankan Universities This includes all Srilankan Universities,Faculties & Undergraduate Degree Programmes. Installations: 1composer require dinushchathurya/srilankan-universities Documentation Working Demo Srilankan Divisional Secretariat This includes all Srilankan Divisional Secretariats Installations: 1composer require...
Laravel Factories, Seeder
Today's tutorial, you will learn how to create dummy data in database using Laravel Factory and Seed the database by using Database Seeder. Generate model factory Firstly, you need to generate model factory. To generate model factory, run below command in your terminal: 1php artisan make:factory UserFactory --model=User This will create a new file called UserFactory.php in database/factories folder. Now we need to add fake data for each column in our model. For example, if we have a...
Send Email with NestJS
Today's tutorial, you will learn how Create Email Templates and send them with nodemailer from your Nest application. In here, I am using Nodemailer to send emails and Handlebars to create email templates, alternatively you can use pug or ejs for templating. Create new Nest application First upon, we need to create a new Nest application. To create a new Nest application, we will use the following command: 1nest new nestjs-mailer Then, we need to navigate to the newly created Nest...
How to setup Nginx as a reverse proxy for Apache on Ubuntu
Today's tutorial, you will learn how to set up Nginx as a reverse proxy server for Apache server on Ubuntu and Debian. I will assume that already you have an existing Apache web server. Using Nginx as a reverse proxy for Apache will allow both servers to work together and allow you to take advantage of the benefits of both servers and hide the actual server. You can easily monitor what traffic goes in and out through the reverse proxy. At the end of this tutorial, you will have a properly...