Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/oybekkayumov/acode-spring
- Owner: OybekKayumov
- Created: 2024-09-14T10:56:52.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-14T11:22:57.000Z (4 months ago)
- Last Synced: 2024-11-18T15:45:01.701Z (about 2 months ago)
- Topics: crud, docker, mvc, postgresql, postman, spring-boot
- Language: Java
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
}