quantified-uncertainty / metaforecast

Fetch forecasts from prediction markets/forecasting platforms to make them searchable. Integrate these forecasts into other services.
https://metaforecast.org/
MIT License
56 stars 5 forks source link

Create a map of all services we are using. #56

Open NunoSempere opened 2 years ago

NunoSempere commented 2 years ago

This pull request introduces Terraform, and argues for using Terraform cloud, but mentions that this would imply adding yet another service.

I would feel more comfortable adding a new service with a map of how these services fit together. Here is an example from a small previous project:

setup

Thoughts?

berekuk commented 2 years ago

Yep, I'd like to try mermaid for this, which github markdown supports.

berekuk commented 2 years ago

Ok, first draft...

flowchart TD

U>User] -- Request website page --> N[Next.js]

subgraph DigitalOcean
  DB[(PostgresQL database)]
end

subgraph Vercel
  N --> G[GraphQL API]
end

subgraph Algolia
  A[(Algolia index)]
end

G --> A
G --> DB

subgraph Heroku
  HS>Heroku Scheduler] --> B[Backend code on Heroku]
  B --> DB
  B --> A
end

B -- Fetch forecasts --> platforms

subgraph platforms [Forecasting platforms]
  Metaculus
  GJOpen
  Polymarket
  ...etc.
end
NunoSempere commented 2 years ago

Nice