I have an elixir project that does some crawling and saves the crawled data to a postgres database, called Tenjin.
Tenjin contais all the logic to perform the requests, parse the responses, validate the data and input it to the database using its own entities.
Now I want to create a graphQL api that will serve the data crawled by Tenjin. As I may use Tenjin in another projects, I don’t want to create the API in the same project, thus not coupling the crawling to the API.
Let’s say the api project is called Omoikane. I want that Omoikane can call and use Tenjin modules and functions in order to serve the data that is available on Tenjin.
But the database configuration and crawling settings are all defined at Tenijn, how can I build Omoikane as a complete separate project, perhaps with its own repo and database, but still using Tenjin as a dependency or so?
Thanks in advance <3