Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/oybekkayumov/acode-spring

Spring Boot 3
https://github.com/oybekkayumov/acode-spring

crud docker mvc postgresql postman spring-boot

Last synced: 1 day ago
JSON representation

Spring Boot 3

Awesome Lists containing this project

README

        

# spring boot 3

- Spring Web MVC
- JSON for Java
- Model
- DB & JPA
- Docker
- Postgres DB
- Instal PostgreSQL Driver and Spring Data JPA Dependencies
- Datasource Configuration
- Create DB
- @Entity
- Generated Table and Sequence
- Customer Repository
- Postman
- Read Customer API
- Create Customer API
- Delete Customer API
- Update Customer API

## docker-compose.yml
- docker exec -it postgres24 bash
- psql -U root
- CREATE DATABASE customer;
- \l
- \c customer
- insert into customer(id, name, email, age)
- values (nextval('customer_id_sequence'), 'John', '[email protected]', 27);

## postman
- get - http://localhost:8080/api/v1/customers
- post - http://localhost:8080/api/v1/customers
{
"name": "Alex",
"email": "[email protected]",
"age": 30
}

- put - http://localhost:8080/api/v1/customers/1
{
"name": "Helen",
"email": "[email protected]",
"age": 26
}