Image for post
Image for post

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.

Dependencies

You need spring-data-starter-data-jpa and mysql-connector-java dependencies to access MySQL database with Spring Data JPA.

If you are using…


Image for post
Image for post

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.

Starting with Spring Initializr

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.


Python Examples For Beginners — Check Prime Number
Python Examples For Beginners — Check Prime Number

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….

Python Examples For Beginners — Check Prime Number

In this article what we will do, we first take an user input and then we apply prime number methodologies in Python. …


Python: Example For Beginners
Python: Example For Beginners

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. …


Image for post
Image for post

Below are some popular Git commands which are being covered in this article:

git init:

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

git config:

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…

Image for post
Image for post

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.

Let’s start…

1. Properly sanitize your input data

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…


Image for post
Image for post

Hello and welcome to all the Deno loving peoples around the world. Hope you guys are enjoying a lot and learned new things from our articles.

Haven’t got a chance to review our previous articles? Here is a quick links for your easy reference.

We already covers following topics in Deno,

Today, we will talk about MongoDB, Oak, Deno and Angular in short MODA. Now please share your thoughts about the term MODA. Sounds crazy right. Let’s popular this term.

So, all good. We will now see how we can achieve MODA. The first component of MODA is Mongodb. …


Image for post
Image for post

Hi friends, hope you all are safe and sound.

Today we are going to discuss JWT authentication process in DENO. Till now we have learned the following in Deno

Now in this article we will see how we achieve JWT( JSON Web Token) in DENO using djwt.

For this we have created token.ts in this file you can see token realted methods like generate and validate.

import { validateJwt, parseAndDecode, validateJwtObject } from "https://deno.land/x/djwt/validate.ts"; 
import { makeJwt, setExpiration, Jose, Payload } from "https://deno.land/x/djwt/create.ts";
const key = "your-secret"; const header: Jose = { alg: "HS256", typ: "JWT" }; export default{ async…

Image for post
Image for post

In Lumen we all are familier with its authentication process. Recently, I am in a situation where I have to validate my JWT token externally.

Normally you first send your username and password at the very begining and based on that credential it returns you a token. Everytime you sends a request you need to send that token within header. If that token is invalid or expire it will automatically throws the exceptions.

But what if you just need a method which only tells whether your token is valid or not? …


Image for post
Image for post

In this article, we will learn how to build a basic form with Formik and another library called Yup that allows us to perform validation in very few steps. In React apps, handling and managing forms are not so easy. There are many libraries in the Node Package Manager( NPM). Formik helps us to build forms in a simpler way along with Yup. Before we start, we will go through the basics of Formik and Yup.

# Formik

According to the docs, Formik is a small library that helps us 3 things:

  1. Getting values in and out of form state
  2. Validation and…

CodingHub

Coding Hub — Learn & Build Your Career

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store