https://github.com/atechguide/messaging-app
Keeps track of last 5 comments and publish new comment to news subscriber
https://github.com/atechguide/messaging-app
project
Last synced: 4 months ago
JSON representation
Keeps track of last 5 comments and publish new comment to news subscriber
- Host: GitHub
- URL: https://github.com/atechguide/messaging-app
- Owner: aTechGuide
- Created: 2017-01-19T13:24:11.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2018-05-14T13:05:31.000Z (about 8 years ago)
- Last Synced: 2024-12-31T04:41:57.758Z (over 1 year ago)
- Topics: project
- Language: Java
- Homepage: https://kamranali.in/page/1
- Size: 59.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Messaging App
This app keeps track of last 5 comments on news and publish new comment to news subscriber. Persistence is done on Redis which maintains track of last 5 comments on news.
# Setting up Redis
Download the Tar from [this](http://download.redis.io/releases/redis-3.2.6.tar.gz) link
**Compiling Redis**
```
Unzip it
cd redis-3.2.6
make
```
**Run Redis**
```
cd src
./redis-server ../redis.conf
```
**To persist the data in Redis DB on multiple startups**
Open ``` redis.conf ```. Search for 'appendonly' and make its value 'yes'
# API List
http://localhost:8080/swagger-ui.html#/
# References
https://spring.io/guides/gs/messaging-redis/
https://dzone.com/articles/using-redis-spring
Build Redis -> https://dzone.com/articles/spring-data-redis-0
CRUD Operations on Object -> http://www.baeldung.com/spring-data-redis-tutorial
Using Redis CLI -> https://examples.javacodegeeks.com/enterprise-java/spring/spring-data-redis-example-2/
Swagger Integration -> http://www.baeldung.com/swagger-2-documentation-for-spring-rest-api