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...
How to use GitLab CICD with GitHub Repository
Imagine that your all repos are hosted on GitHub but you wanna use GitLab's CI/CD for them instead of GitHub actions. So, in today's article, I am going to show you, how we can use GitLab CICD with GitHub Repository. Create GitHub Access Token To connect our GitHub Repositories with GitLab, we need to create a GitHub Access Token. You should have GitHub Owner Role to perfome this action To create a GitHub Access Token, follow the steps below: Go to your GitHub account and navigate to...
Laravel Passwordless Login
In this article, we are going to learn how to create a passwordless login system in Laravel. In here, we will use only the user's email address to register and login. In the registration, we will send a link to given email for email verification, while we will send login link everytime when user input email. Setting up the Project First you need to create a fresh laravel project by running below command in your terminal 1composer create-project laravel/laravel...