Code Monkey home page Code Monkey logo

gnosisx's Introduction

GnosisX

Hi Everyone,

https://blog.gnosis.pm/ready-to-start-building-9c910c5a2900. GnosisX is launching on Monday 19th March 2018 with 3 categories of $100k GNO each category. We are forming a team for this challenge, more about us on http://smallprophet.com. Anyone interested to join please pm me [email protected] or join our telegram group https://t.me/GnosisX

Gnosis is composed with 3 parts:

  • gnosis.js
  • gnosis-contracts
  • gnosisdb
npm install -g ganache-cli

Install Gnosis.js

cd gnosis.js
npm install

Install GnosisDB & Run it in docker

cd gnosisdb
add '192.168.99.100' into ALLOWED_HOSTS array in file config/settings/local.py
docker-compose build --force-rm

Create a Django superuser

Run the Web container with the following command and inside create a super user in order to access the /admin interface.

docker-compose run web bash
python manage.py migrate
python manage.py createsuperuser

Run application

Start the gnosisdb server simply by bringing up the set of containers:

docker-compose up

You can access it on http://localhost:8000 and the admin is on http://localhost:8000/admin

Test

you can test in node command-line

in project root, run node:

> const Gnosis = require('@gnosis.pm/gnosisjs')
> let gnosis, ipfsHash
> Gnosis.create().then(result => {
    gnosis = result
})
> gnosis.publishEventDescription({
        title: 'Who will win the U.S. presidential election of 2016?',
        description: 'Every four years, the citizens of the United States vote for their next president...',
        resolutionDate: '2016-11-08T23:00:00-05:00',
        outcomes: ['Clinton', 'Trump', 'Other'],
    }).then(result => {
    ipfsHash = result;
    console.info(`Ipfs hash: https://ipfs.infura.io/api/v0/cat?stream-channels=true&arg=${ipfsHash}`)
})

gnosisx's People

Contributors

exdx avatar glamperd avatar kingshark8848 avatar leckylao avatar nnebp avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.