Saturday, February 4, 2023

Laravel 9 Installation on Ubuntu 22.04 LTS

Laravel is a web application framework with expressive, elegant syntax. 
We’ve already laid the foundation freeing you to create without sweating the small things.

Let's see how o create the first app using this greate framework

Install composer

First install composer
apt install composer

Install Additional php extensions

sudo apt install php-curl php-gd php-intl php-mbstring php-soap php-xml php-xmlrpc php-zip

Create the app

Create the App
composer create-project laravel/laravel app

Edit .env

Set user and password for database connection
...
DB_USERNAME=laravel
DB_PASSWORD=password
...

Generate the key and cache the config

cd app
php artisan key:generate
php artisan config:cache

Create Database

mysql> CREATE DATABASE laravel DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
mysql> CREATE USER 'laravel'@'localhost' IDENTIFIED BY 'password';
mysql> GRANT ALL ON laravel.* TO 'laravel'@'localhost';
mysql> flush privileges;

Install Sanctum

composer require laravel/sanctum
php artisan vendor:publish --provider="Laravel\Sanctum\SanctumServiceProvider"

Migrate Database

php artisan migrate

Install Breeze

composer require laravel/breeze --dev
php artisan breeze:install
Select 2

Using Vue

Install Node
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
source ~/.bashrc
nvm list-remote
nvm install v18.13.0
npm install
npm run build

Launch the server

php artisan serve --host=0.0.0.0

Install Docker on Ubuntu 22.04

Install Docker on Ubuntu 22.04

This small guide allow you to install Docker and Docker compose on a Ubunt 22.04 Droplet First remove all previous installations
apt-get remove docker docker-engine docker.io containerd runc

Set up the repository

Update the apt package index and install packages to allow apt to use a repository over HTTPS:
apt-get update
sudo apt-get install ca-certificates curl gnupg lsb-release

Add Docker’s official GPG key:

mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg

Use the following command to set up the repository:

echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

Install Docker Engine

apt-get update
apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
systemctl enable --now docker

Install Docker Compose


curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" \
-o /usr/local/bin/docker-compose &> /dev/null
chmod +x /usr/local/bin/docker-compose
ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

KPlatform ETL, BI, AI all in one

 

KPlatform

Kplatform a toolset for ETL, BI, AI

K-Platform is a professional tool developed by DataLife which allows BI-Specialist, Data Scientist, Data Managers to create ETL tasks and flows, create and manage dashboards for Business intelligence, trains and apply AI models.

It is structured in 4 main modules:

Data visualization
Data integration
Data Catalog
Artificial Intelligence

There are 3 different roles:
 - Administrator: can do everything
 - Editor: can create dashboards and ETL projects
 - User: all in read-only mode

Administration

The Administration module is an area where you can configure things that are valid across the platform (Users, SMTP, Apps…).