Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sanv92/microservices-calculating-peoples-social-rating
Microservices for calculating people's social rating
https://github.com/sanv92/microservices-calculating-peoples-social-rating
Last synced: about 2 months ago
JSON representation
Microservices for calculating people's social rating
- Host: GitHub
- URL: https://github.com/sanv92/microservices-calculating-peoples-social-rating
- Owner: sanv92
- Created: 2020-04-07T11:58:52.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-29T22:18:56.000Z (over 1 year ago)
- Last Synced: 2024-05-07T18:25:43.531Z (8 months ago)
- Language: Java
- Size: 4.28 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Microservices for calculating people's social rating
## Installation
### Clone Repository
```
git clone https://github.com/SanderV1992/microservices-calculating-peoples-social-rating.git
```### Project build
```
mvn clean install
mvn clean install -DskipTests
```### Project start (Maven)
```
mvn --projects datacollector spring-boot:run
mvn --projects socialratingcalculator spring-boot:run
mvn --projects datacollector spring-boot:run -Drun.jvmArguments='-Dserver.port=8080'
mvn --projects socialratingcalculator spring-boot:run -Drun.jvmArguments='-Dserver.port=8090'
```### Project start (Jar files)
```
java -jar ./datacollector/target/datacollector-1.0.jar --spring.config.location=classpath:/application.properties,classpath:/kafka.properties,classpath:/social.properties --social.base-score-rating=100
java -jar ./socialratingcalculator/target/socialratingcalculator-1.0.jar
```### Project start (Docker Compose)
```
docker-compose -f ./docker/docker-compose-production.yml up
```---
# Redis
```
redis-cli -h localhost -p 6379 -n 0 keys *
```---
## Api Documentation
| resource | description |
|:----------------------------------------------------|:-----------------------------------------------|
| `http://localhost:8080/api/users/message` | send message via broker messenger
| `http://localhost:8090/api/users/FirstName` | return user