Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marcellharmaci/plantfriend-spring
The Plant Friend project's backend implemented in Spring Boot using Java and Maven
https://github.com/marcellharmaci/plantfriend-spring
maven openapi spring-boot
Last synced: 10 days ago
JSON representation
The Plant Friend project's backend implemented in Spring Boot using Java and Maven
- Host: GitHub
- URL: https://github.com/marcellharmaci/plantfriend-spring
- Owner: MarcellHarmaci
- Created: 2024-09-22T15:37:15.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-10-28T17:22:07.000Z (10 days ago)
- Last Synced: 2024-10-28T18:47:07.166Z (10 days ago)
- Topics: maven, openapi, spring-boot
- Language: Java
- Homepage: https://marcellharmaci.github.io/plantfriend-swagger-ui/
- Size: 74.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Plant Friend Spring Boot :seedling:
A Spring Boot backend implemented in Java, connected to a PostgreSQL database.## Configuration
To connect the application to a postgresql DB some values need to be set in `application.properties`
- `spring.datasource.url`: The postgresql database url
- `spring.datasource.username`: DB user
- `spring.datasource.password`: DB password (encrypted)
- `jasypt.encryptor.password`: Encryption password referring to the `JASYPT_ENCRYPTOR_PASSWORD` env var.The DB password is in the following format `ENC(*************)`, because it is encrypted for security
using the [jasypt-maven-plugin](https://github.com/ulisesbocchio/jasypt-spring-boot)
and decrypted on application startup using the `jasypt-spring-boot-starter` dependency.To encrypt the DB password use the `jasypt-maven-plugin` like so:
```
mvn jasypt:encrypt-value -Djasypt.encryptor.password="theEncryptionPassword" -Djasypt.plugin.value="theValueYouWantToEncrypt"
```To run the application, the encryption password should be provided in the `JASYPT_ENCRYPTOR_PASSWORD` env var.
In [JetBrains IntelliJ IDEA](https://www.jetbrains.com/idea/) this can be done on the Run/Debug configuration window:![Run Configuration - env vars](/assets/run_configuration.png)