gnosis/pm-trading-ui

Name: pm-trading-ui

Owner: GNOSIS

Description: Prediction Market Trading Interface for Gnosis Contracts

Created: 2017-06-13 13:43:20.0

Updated: 2018-05-24 14:52:30.0

Pushed: 2018-05-24 15:24:50.0

Homepage: https://gnosis.pm

Size: 6020

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

pm-trading-ui

Join the chat at https://gitter.im/gnosis/pm-trading-ui Builds at Travis-CI

Start with npm start, server available under http://localhost:5000/

Quickstart with Docker/Docker Compose
Install Docker and Docker Compose
clone https://github.com/gnosis/pm-trading-ui.git
m-trading-ui
Build containers

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

Running the Application
er-compose up

Application will run on http://localhost:8080

Installing 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

Running pm-trading-db

Refer to pm-trading-db's repo

Quick version:

Running Ganache-Cli

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/gnosisjs/) and run npm run migrate this will deploy all contracts to Ganache.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.