A service which is responsible to populate random data in Firebase Cloud Firestore at random intervals where data is an opinion and it's probability to be true at a certain time
- JDK >= 17
- Eclipse IDE >= 4.27.0
- Google account to use Firebase and it's services
- Open the firebase console -> Create new project -> Open project settings -> Open the "Service accounts" tab
- Under "Service accounts" tab under "Admin SDK configuration snippet" click "Generate new private key" button
- Clone this repo and place the downloaded private key at
src/main/resources/config - Import this project in Eclipse IDE (File -> Import -> Existing Maven Projects)
- Now, from within Eclipse IDE's "Project navigator" just right click the project folder and click "Run as" after which choose "Spring Boot App" or "Run on server"
- Check the logs in the console and if you did everything as per the instructions above, the service should be running fine
- Now, either from the Opulizer app try starting the service or make a call to
http://localhost:8080/startdirectly. This will kickstart the service - Check Firebase Cloud Firestore, the generated data points will start to show up under a collection named "opinions". Also, check console in Eclipse IDE if everything is fine then you'll see repeated logs prefixed with "Probability changed:"