Spring Boot + GraphQL + PostgreSQL example

GraphQL is a query language that offers an alternative model to developing APIs (REST, SOAP or gRPC) with detailed description.

In this tutorial, we’re gonna build a Spring Boot GraphQL example with PostgreSQL database that will expose CRUD APIs to create, read, update and delete objects with the help of graphql-spring-boot-starter and Spring Data JPA.

Related Post:
Spring Boot + PostgreSQL example: CRUD Rest API
Spring Boot, Spring Security, PostgreSQL: JWT Authentication example
Spring Boot Thymeleaf CRUD example
– Documentation: Spring Boot Swagger 3 example
– Unit Test: @DataJpaTest example for Spring Data Repository
– Caching: Spring Boot Redis Cache example
– Dockerize: Docker Compose: Spring Boot and Postgres example

Read More

Docker Compose: Spring Boot and Postgres example

Docker provides lightweight containers to run services in isolation from our infrastructure so we can deliver software quickly. In this tutorial, I will show you how to dockerize Spring Boot microservice and Postgres example using Docker Compose.

Related Posts:
Spring Boot and PostgreSQL CRUD example
Spring Boot R2DBC + PostgreSQL example
Spring Boot + GraphQL + PostgreSQL example
Spring Boot, Spring Security, PostgreSQL: JWT Authentication example
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example

Read More

JPA @ManyToOne example | Spring Boot

In this tutorial, I will show you how to implement Spring Data JPA Many-to-One example in Spring Boot for One-To-Many mapping using @ManyToOne annotation. You’ll know:

  • How to configure Spring Data, JPA, Hibernate to work with Database
  • How to define Data Models and Repository interfaces for JPA One-To-Many relationship using @ManyToOne
  • Way to use Spring JPA to interact with Database for Many-to-One association
  • Way to create Spring Rest Controller to process HTTP requests

Related Posts:
Spring Boot + GraphQL example
JPA One To One example with Hibernate in Spring Boot
JPA Many to Many example with Hibernate in Spring Boot
Validate Request Body in Spring Boot
Spring Boot Token based Authentication with Spring Security & JWT
Spring JPA + H2 example
Spring JPA + MySQL example
Spring JPA + PostgreSQL example
Spring JPA + Oracle example
Spring JPA + SQL Server example
– Documentation: Spring Boot Swagger 3 example
– Caching: Spring Boot Redis Cache example

Read More

Typescript ORM with Postgres example

Sequelize is a promise-based Node.js ORM that supports the dialects for Postgres, MySQL, SQL Server… Using an ORM can simplify database interactions, improve code maintainability, and speed up development by providing an object-oriented approach to working with relational databases. In this tutorial, I will show you step by step to implement CRUD operations using Typescript ORM with Postgres example.

You should install Postgres in your machine first.

Working with following front-end:
Angular 8 / Angular 10 / Angular 11 / Angular 12 / Angular 13 / Angular 14 / Angular 15 / Angular 16
Vue 2 Typescript / Vue 3 Typescript
React Typescript Component / React Typescript Hooks

Related Posts:
Express Typescript example
– Security: Node.js JWT Authentication with PostgreSQL example
– Dockerize: Docker Compose Nodejs and Postgres example

Read More