This service was created as a result of the OpenReq project funded by the European Union Horizon 2020 Research and Innovation programme under grant agreement No 732463.
The ri-storage-twitter microservice represents an interface to a database persisting all JSON objects related to Twitter data. It can store tweets, Twitter accounts that should be observed by the ri-orchestration-twitter ms. It also returns tweets and observed accounts.
-
Gorilla Mux (→ https://github.com/gorilla/mux)
-
MongoDB (→ https://www.mongodb.com/)
Run the following commands to start the microservice:
-
docker build -t ri-storage-twitter .
-
docker run -e "MONGO_IP=<mydbip>" -p 9682:9682 ri-storage-twitter
The IP adresss of the Mongo Database in which to store Twitter data is passed through the environment variable MONGO_IP. <mydbip> should be set by the IP adress of your database.
The API is documented by using Swagger2:
See OpenReq project contribution Guidlines