jQuery Datatables and Laravel 6.x Pagination

jQuery DataTables is a table component that is powerful for data management. These plugins provide searching, sorting, pagination, filter per column, and many more. But we have some problems combining jQuery Datatables and Laravel framework.

We separate applications (Rest API and User Interface). For Rest API we use Laravel Framework and for User Interface use Laravel too, but we only Blade component and Guzzle as HTTP Client Library.

We now Laravel has good packages for handle it, as far I know Yajra’s good and incredible packages (you can see Yajra’s package on Github). But using Yajra’s library was not possible at that time, because Yajra was using Eloquent and can’t use HTTP Client (like Guzzle, UniRest, etc). Then we do research to deal with this problem and got results as we would discuss in this post.

On these tutorials, we use an empty Laravel 6.x project with Bootstrap 3, jQuery Datatables plugins. Our goal in this tutorial is to Display User Lists in Datatables (Searching and Sorting also). Ok let’s start the codings. (more…)

Read More

Benchmarking Using AB

odenktoo001.json content :

 

Read More

Docker Persistent Storage

Master Node Machine : 192.168.2.80

Node 1 Machine : 192.168.2.81

Master Node Machine

result

Copy it to your clipboard

Node 1 Machine

Paste ssh-key from Master Machine to last line and save it.

Test ssh connection

Copy ssh-key to clipboard and back to Master Node

Master Node

Paste ssh-key from Node 1 Machine to last line and save it.

Test ssh connection

Installing NetShare

Node 1 Machine

on tab ‘docker-shell’

on tab ‘bash’

Testing

then try to remove container

Read More

Kafka Docker

Step 0 (Create Docker Compose file)

See my Docker Compose file

Step 1 (Create Zookeeper Container)

Step 2 (Create Kafka Container)

Step 3 (Create Kafka Topic)

Step 4 (Verify Kafka Topic)

Step 6 (Get All Kafka Topics)

Step 6 (Listen to Kafka Topic)

Step 7 (Produce data to Kafka Topic)

(more…)

Read More