Start with npm start
, server available under http://localhost:5000/
git clone https://github.com/gnosis/pm-trading-ui.git
cd pm-trading-ui
The application is made up of several container images that are linked together using docker-compose. Before running the application, build the images:
docker-compose build --force-rm
docker-compose up
Application will run on http://localhost:8080
pm-js
This package implements the npm package for pm-js for interaction with prediction markets. See the github repo from gnosis/pm-js
If you're working with pm-js locally, you can add it to your installation like this: npm i ../pm-js
(if your pm-js
repo is in the parent folder) this will npm-link and you're free to make changes there too
pm-trading-db
Refer to pm-trading-db's repo
Quick version:
ETHEREUM_HOST
to your local LAN IP (localhost won't work as this is a docker container).docker-compose build && docker-compose up
.docker-compose run web bash
.python manage.py createsuperuser
and create a user.localhost:8000/admin
with the created user.In order to run this on a local blockchain, install ganache-cli npm install ganache-cli -g
and run ganache-cli like so:
ganache-cli --gasLimit 400000000 -d -h 0.0.0.0
Afterwards, go into your gnosis folder (either ../gnosis.js
or ./node_modules/@gnosis.pm/pm-js/
) and run npm run migrate
this will deploy all contracts to Ganache.