Skip to content

🌿 An example project that demonstrates a Spring microservice that performs CRUD operations on Postgres relational database running on Docker.

Notifications You must be signed in to change notification settings

hanit-com/spring-postgres-microservice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Spring Boot Microservice

An example project that demonstrates a Spring microservice that performs CRUD operations on Postgres relational database running on Docker.

Environment

Create and start postgres container:

docker run --name postgres-spring -e POSTGRES_PASSWORD=password -d -p 5432:5432 postgres:alpine

For testing and DB configurations, connect to the container`s shell:

docker exec -it <container_id> bin/bash

Start Postgres CLI:

psql -U postgres

Create the database:

CREATE DATABASE demodb;

Connect:

\c demodb

Add the UUID creation extension:

CREATE EXTENSION "uuid-ossp";

About

🌿 An example project that demonstrates a Spring microservice that performs CRUD operations on Postgres relational database running on Docker.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages