https://github.com/khantwaikyaw/spring-boot-rest
Spring Boot REST API - Clean Architecture DDD
https://github.com/khantwaikyaw/spring-boot-rest
clean-architecture domain-driven-design java object-oriented-programming rest-api spring-boot
Last synced: 11 months ago
JSON representation
Spring Boot REST API - Clean Architecture DDD
- Host: GitHub
- URL: https://github.com/khantwaikyaw/spring-boot-rest
- Owner: khantwaikyaw
- License: mit
- Created: 2024-09-12T19:00:16.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-11-26T10:55:35.000Z (over 1 year ago)
- Last Synced: 2024-11-26T11:47:14.590Z (over 1 year ago)
- Topics: clean-architecture, domain-driven-design, java, object-oriented-programming, rest-api, spring-boot
- Language: Java
- Homepage:
- Size: 87.9 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Security: SECURITY.md
Awesome Lists containing this project
README
# Spring-Boot REST API
### Clean Architecture - DDD
### Documentation
#### http status codes for REST API - Success Responses
```text
- CREATE - 201 CREATED
- READ - 200 OK
- UPDATE - 200 OK
- DELETE - 204 NO_CONTENT
```
View dependencies and configuration in the `build.gradle` file.
- Lombok
- H2 Database
- JpaRepository
- Hibernate
Environment variables are set in `applicaion.properties` file. H2, In-Memory Database is also configured by default.
### Running Application and Database
```bash
/gradlew build
```
```bash
/gradlew bootRun
```
Default API URL
```text
http://localhost:8080/api/v1/categories
```
Default H2 Database console
```text
http://localhost:8080/api/v1/h2
```
Default database credentials
- JDBC URL - jdbc:h2:mem:devdb
- username - root
- password -
### Roadmaps
- Exception Handling with specific error codes
- Data Validation
- Mutable and Immutable Models
- Mutable and Immutable Services
- Relationships
- Swagger Documentation
- Environment Variables
- Security
- Docker
- Unit Testing
- Integration Testing
*Credit for the OOP - Mutable and Immutable Concepts goes to [`Ko Aung Thu Moe`](), my senior and former director.*