This project works as an implementation for the clean architecture, this application is build using Spring Web and Spring Security.
This application required:
- Gradle 4+
- Java 17+
To run the application run ./gradlew bootRun
in the root directory this will start the server in the port 8080
.
To build the application you can run the command ./gradlew build
this will generate a .jar
file in build/libs/clean-{version}.jar
which can be run using the following command.
java -jar build/libs/clean-{version}.jar
The API of the application can be found using the OpenApi Specification in the Swagger Editor.
There is also a set of requests for different Rest clients
This are the env variables that were used to build the application.
Variable | Values | Description |
---|---|---|
STORAGE_TYPE |
memory , file |
This variable controls the type of storage used by the application. - - |
WORKING_DIRECTORY |
directory path |
Is the directory that is used the the - - |
JWT_ISSUER |
string |
Is the application that is signing the jwt token. |
JWT_SECRET |
string |
Is the secret used to sign the jwt . |