/payment_server

This is a graphql api that allows send and receiving money from different accounts using different currencies. It has a currency exchange rate that changes every second, so I used genservers to track that and served it using graphql subscriptions.

Primary LanguageElixir

PaymentServer

This is a graphql api used to handle transactions. It fetches exchange rates of different currencies from an external api(they change every second), and uses OTP genservers to update the exchange each second.

Built using:

  • Elixir
  • Phoenix
  • Absinthe/Graphql

To run it locally:

  • clone this repo: git clone https://github.com/Rolemodel01291/payment_server
  • Update your database credentials in config/dev.exs
  • Run mix ecto.setup to create and migrate your database
  • Run mix phx.server to start your server
  • Now you can visit localhost:4000 from your browser and use the graphql playground