Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/carlphilipp/clean-architecture-example
An example to create a clean architecture with Java 11
https://github.com/carlphilipp/clean-architecture-example
clean-architecture
Last synced: 12 days ago
JSON representation
An example to create a clean architecture with Java 11
- Host: GitHub
- URL: https://github.com/carlphilipp/clean-architecture-example
- Owner: carlphilipp
- Created: 2018-04-11T01:09:36.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-01-03T20:35:23.000Z (almost 4 years ago)
- Last Synced: 2024-08-01T21:58:28.858Z (4 months ago)
- Topics: clean-architecture
- Language: Java
- Homepage:
- Size: 175 KB
- Stars: 523
- Watchers: 34
- Forks: 164
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Clean Architecture Example
### Blog post
https://medium.com/slalom-engineering/clean-architecture-with-java-11-f78bba431041
### Pre-requisite
Java 11
```
> java -version
openjdk version "11" 2018-09-25
OpenJDK Runtime Environment 18.9 (build 11+28)
OpenJDK 64-Bit Server VM 18.9 (build 11+28, mixed mode)
```### Compile
`./gradlew clean build`
### Run Spring example
`java -jar application/spring-app/build/libs/spring-app-1.0.0.jar`
### Run Vertx example
`java -jar application/vertx-app/build/libs/vertx-app-1.0.0-fat.jar`
### Use the webbapps
#### Create User
```
POST: http://localhost:8080/users
Body:
{
"email": "[email protected]",
"password": "mypassword",
"lastName": "Doe",
"firstName": "John"
}
```#### Get all users
```
GET: http://localhost:8080/users
```#### Get one user
```
GET: http://localhost:8080/users/0675171368e011e882d5acde48001122
```#### Login
```
GET: http://localhost:8080/[email protected]&password=mypassword
```