https://github.com/pine/emotions
:smile: Change avatar's emotion everyday.
https://github.com/pine/emotions
java spring-batch spring-boot
Last synced: 6 months ago
JSON representation
:smile: Change avatar's emotion everyday.
- Host: GitHub
- URL: https://github.com/pine/emotions
- Owner: pine
- License: mit
- Created: 2019-02-16T19:27:20.000Z (almost 7 years ago)
- Default Branch: main
- Last Pushed: 2022-11-22T05:52:28.000Z (about 3 years ago)
- Last Synced: 2025-03-02T15:54:21.922Z (12 months ago)
- Topics: java, spring-batch, spring-boot
- Language: Java
- Homepage:
- Size: 851 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# emotions [](https://circleci.com/gh/pine/emotions/tree/main) [](https://codecov.io/gh/pine/emotions)
:smile: Change avatar's emotion everyday.

© shihina/123RF.COM
## Requirements
- JDK 17 or later
## Libraries
- Spring Boot 2
- Spring Batch
## Supported services
- [Bookmeter](https://bookmeter.com/)
- [Gravatar](https://gravatar.com/)
- [GitHub](https://github.com/)
- [Qiita](https://qiita.com/)
- [Twitter](https://twitter.com)
## Development
### JDK
For macOS users.
```
$ brew install --cask temurin17
```
### Gravatar
You should set `gravatar.images` properties when the app runs.
Please try the following commands after set `GRAVATAR_EMAIL`, `GRAVATAR_PASSWORD` environment variables.
```
$ ./gradlew :tool-gravatar:bootRun
```
### Encrypt credentials with Jasypt
To encrypt plain text with Jasypt, please use the command below.
```sh
$ bin/encrypt.sh \
algorithm=PBEWITHHMACSHA512ANDAES_256 \
ivGeneratorClassName=org.jasypt.iv.RandomIvGenerator \
password= \
input=
```
### Run Spring Batch's job
`` is defined in [BatchConfiguration.java](app/src/main/java/moe/pine/emotions/app/config/BatchConfiguration.java).
#### Using Gradle
```bash
$ ./gradlew :app:bootRun --args='--spring.batch.job.names='
```
#### Using .jar file
```bash
$ ./gradlew :app:bootJar
$ java -jar -jar app/build/libs/app.jar \
--jasypt.encryptor.password= \
--spring.batch.job.names=
```
## License
MIT © [Pine Mizune](https://profile.pine.moe/)