Hello friends, today I will show you how to set cron jobs or task scheduling in a Laravel and Lumen (a micro-framework of Laravel) application. Laravel offers a flexible approach to manage your scheduled tasks on the server. Only one single cron entry is required on your server. All your jobs or tasks will be defined in the schedule method under app/Console/Kernel.php file. Let’s take an example and understand the whole thing.
How to Create:
To create the scheduled task files or cron job files you need to have make:command artisan command available in your application. If you are using…
Hi Friends, In the previous article, I have written the process about how to convert the PDF pages to PNG In this article, I will tell you how to read the converted images and return those images as a REST API endpoint. So Lets Start.
If you didn’t read my previous article please go through it since this is the extension of that article
We will create the two endpoints
var express = require("express");
var router = express.Router();
} = require("pdf2pic");
const pdf = require("pdf-page-counter");
const fs = require("fs");
I am going to show you a step-by-step guide about how to create a node express js project & write a REST API which will take a pdf file path as request params & convert that all pdf pages to png images. Let’s Start
We will use the pdf2pic package to convert the pdf pages to png image — https://www.npmjs.com/package/pdf2pic
Hello and welcome to all my lovely readers in our articles. As you all are now used to with our site, I believe our articles help you a lot in your day-to-day coding life. Isn’t it so? Please share your thoughts at firstname.lastname@example.org so that we can improve ourselves better and better in terms of your expectations.
Well! So let’s jumps into today’s topic. This is yet another interesting and very very basic python example we will discuss today.
In this article, you will learn how to access data with Spring Data JPA and MySQL. You might have found the previous article very much useful and this article is an extension of Building a RESTful Web Service in Spring Boot.
Spring Data JPA is a method to implement JPA repositories to add the data access layer in applications easily. We will see an example of how to access data from a database in a spring boot application using spring data JPA.
mysql-connector-java dependencies to access MySQL database with Spring Data JPA.
If you are using…
In this article, we will learn how to build a RESTful web service with Spring Boot. We will build a service that will accept HTTP GET requests and respond with a JSON representation.
Building RESTful Web Services with Spring Boot is very easy as it provides good support for REST services. RESTful Web services are really popular these days for enterprise applications.
For all Spring Boot applications, we should start with the Spring Initializr. The Initializr offers a fast way to pull in all the dependencies we need for an application. Please see the below setup process.
Thank you very much to all the lovely people around the world reading my last article Python Examples for Beginners. If you haven’t got a chance to see that just have a look once (a kind request).
So, we learn how to add two numbers in Python, now it’s time to go one step forward therefore we will see today how to check whether a number is prime or not? Sound’s great….
In this article what we will do, we first take an user input and then we apply prime number methodologies in Python. …
A very warm welcome to all my readers in our articles. As you already find our last two articles in Python namely What is python, why python is so popular and how to install the python? and Write First Python Program. Now in this article we will start a series of Python examples for the beginners who are just stepping into this wonderful and powerful programming language or those who already use python for a long time can also refresh their mind by have a look to this tiny programs. …
Below are some popular Git commands which are being covered in this article:
The first step to create a git repository is git init. It initializes an empty git repository to a new or existing project. Run the below command to the root directory of your project.
$ git init
After creating a git repository you might want to configure your name and email in the main configuration file. This is one time configure and by running the below two commands you can do it easily.
$ git config --global user.email "PUT_YOUR_EMAIL_HERE"
$ git config --global…
Hello my dear friends, hope you all are safe and sound in this pandemic situation.
I would like to thank all my readers who have reached this article for the first time and many thanks to those who have reached here once again.
Today we will discuss about Top 10 Web Securities we must have to implement in our website before going live.
You need to take care of all of your inputs taken from users. It can be GET or POST you must have to sanitize it before using it. Similar to this pandemic situation, how we…
Coding Hub — Learn & Build Your Career