Giter Club home page Giter Club logo

komodo-blockchain-wizard's Introduction

A serverless dynamodb and vue thing for prototyping a Komodo assetchain. Just add a cronjob to get submissions (below curl command) and run your komodod -ac_name=COINNAME -ac_supply=SUPPLY like the instructions for creating a native blockchain on your nodes https://docs.komodoplatform.com/en/latest/komodo/create-Komodo-Assetchain.html

Komodo Blockchain Wizard

Pre-requisite

*serverless framework installed *aws creditials in your ~/.aws

Install, run, deploy

git clone https://github.com/imylomylo/komodo-blockchain-wizard.git
cd komodo-blockchain-wizard
npm install
serverless deploy

this will output the url of the rest api. replace it into the url in src/vue/App.vue

cd vue
npm run build

now deploy the client end

cd ..   (back to root of project where serverless.yml is)
serverless client deploy

Then you can visit the URL output http://......./index.html

There's no "response" on submitting the form. So you submit it and it gets saved to AWS DynamoDB.

To get all your submissions

curl https://URL-of-REST-API/v0/acwiz

and you get json which you can pipe through a tool like jq instead of being messy.

$ curl https://3p744v40oa.execute-api.ap-southeast-2.amazonaws.com/v0/acwiz | jq '.[]'
{
  "password": "FreedomFix",
  "active": true,
  "ticker": "BLAH",
  "updatedAt": 1531190058052,
  "status": "Proposed",
  "supply": "10000",
  "createdAt": 1531190058052,
  "id": "be716040-83e9-11e8-8ae1-ad2f05546016",
  "email": "[email protected]",
  "notarisation": "none",
  "name": "blah"
}
{
  "password": "FreedomFix",
  "active": true,
  "ticker": "FREE2",
  "updatedAt": 1516677649676,
  "status": "Proposed",
  "supply": "10000002",
  "createdAt": 1516677649676,
  "id": "68fb64c0-ffec-11e7-bf27-a3975719b409",
  "email": "[email protected]",
  "notarisation": "full",
  "name": "Freedom Howto Coin 2"
}
{
  "password": "FreedomFix",
  "active": true,
  "ticker": "MYLO1",
  "updatedAt": 1531199124891,
  "status": "Proposed",
  "supply": "555555555",
  "createdAt": 1531199124891,
  "id": "dab336b0-83fe-11e8-a844-131776238f0b",
  "email": "[email protected]",
  "notarisation": "none",
  "name": "Mylo's First Coin"
}
{
  "password": "FreedomFix",
  "active": true,
  "ticker": "FREE",
  "updatedAt": 1516677192213,
  "status": "Proposed",
  "supply": "10000001",
  "createdAt": 1516677192213,
  "id": "58501450-ffeb-11e7-bf27-a3975719b409",
  "email": "[email protected]",
  "notarisation": "none",
  "name": "Freedom Howto Coin"
}

komodo-blockchain-wizard's People

Contributors

imylomylo avatar

Watchers

Ben Haim 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.