Skip to content

Polkamarkets/polkamarkets-api

Repository files navigation

Polkamarkets API

Polkamarkets is an Autonomous Prediction Market Protocol built for cross-chain information exchange and trading, based on Polkadot.

Project Setup

1. Required software

  • Ruby (ruby 2.6.6 with rbenv)

Databases:

To allow env vars to be used in ruby:

2. Installing the app

git clone [email protected]:Polkamarkets/polkamarkets-api.git
cd polkamarkets-api
  • Create .envrc file with env vars
direnv allow
bundle install
rails db:create
rails db:migrate
rails markets:check_new_markets # syncs data from smart contract to local database

3. Running the app

rails s