/images/alvinditya.png

Java 8 Stream API Tutorial

Prerequisites Basic knowledge of Java 8 (lambda expressions, Optional, method references) of the Stream API. This tutorial is using Gson to pretty print JSON string. Object and Data Sampling Create class Pojo.java 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 public class Pojo { private String numberId; private String name; private String gender; public Pojo(String numberId, String name, String gender) { this.

Laravel Custom Base Project

Features Basic Authentication Json Web Token Custom Error Handling CORS Filter Authority Access Custom Middleware Soft Deletes Service Custom Form Validation Auto Refresh Token Every 1 Hour (Ajax) User Management Documentation Clone this project https://github.com/piinalpin/laravel-base.git. Change.env.docker file to change database configuration to your database configuration and add basic auth configuration. Then copy .env.docker to .env 1 2 3 4 5 6 7 8 9 AUTH_USERNAME=<BASIC_AUTH_USERNAME> AUTH_PASSWORD=<BASIC_AUTH_PASSWORD> DB_CONNECTION=mysql DB_HOST=<DATABASE_HOST> DB_PORT=<DATABASE_PORT> DB_DATABASE=<DATABASE_NAME> DB_USERNAME=<DATABASE_USERNAME> DB_PASSWORD=<DATABASE_PASSWORD> Run php artisan migrate to migrate table on database.

Automation Test Using Cypress Example

Prerequisites Install Cypress using NPM : 1 2 cd /your/project/path npm install cypress --save-dev or using Yarn : 1 2 cd /your/project/path yarn add cypress --dev Step to create test case Open cypress to get examples of test case from cypress module using npx : 1 npx cypress open using yarn 1 yarn run cypress open Cypress should be like image below Create test case data, in this case I will use my simple CRUP web app which is deployed on heroku https://github.

Django Mail Sender With Rabbit-MQ and Celery Worker

Prerequisites Erlang (Open Telecom Platform) RabbitMQ (Message Broker) Pyhton 3.6 (Base Compiler) Sendgrid Account (SMTP Client) Virtualenv Step to create Django mail sender Create virtual environtment in root directory on your project and activate it 1 2 virtualenv env . env/bin/activate Install Django 2.1 1 pip install Django==2.1.2 Create project and application in Django 1 2 django-admin startproject your_project_name django-admin startapp your_apps_name Install library celery and celery-message-consumer 1 2 pip install celery pip install celery-message-consumer Edit django base settings project_name/settings.