Giter VIP home page Giter VIP logo

bs-demo's Introduction

Moneysocket Extension Buyer and Seller Demo App

This is an example of defining an extension to the js-moneysocket library and protocol for a specific custom purpose.

TODO - screenshot

The Gist Of It

The classes here extend the base classes out of the library and place one layer on the stack objects that aren't in the generic stack classes.

Custom messages are defined for the purposes of the exchange between the Buyer and the Seller. This allows the Seller to advertize what is for sale over the socket connection and the Buyer to consumer it.

The application driving the economic interaction is the Buyer, which has two Consumer connections. One connection has the extension, one is the generic ConsumerStack. This allows the Buyer to orchestrate the act of buying.

The Seller appliction provides a Provider connection to the Buyer that has the extension. For the Seller to recieve the payment for the purchase it has a Consumer connection back to the Seller's funds.

Dependencies

This depends on js-moneysocket which will need to be installed into node_modules prior to building this project.

$ git clone https://github.com/moneysocket/bs-demo

$ cd bs-demo

$ npm install https://github.com/moneysocket/js-moneysocket

Also, package.json specifies additional dependencies that will need to be installed. From the cloned directory:

$ npm install

Building

This uses gulp to build the application.

From the cloned directory with the dependencies installed:

$ gulp quick will build to the htdocs/ directory

$ gulp full will take longer but will produce optimized javascript

$ gulp quick_watch will watch the source files for changes and automatically rebuild

Running

Once, built the web root will be set up under htdocs/. If you want to run it locally, use a webserver. eg:

$ cd htdocs $ python -m SimpleHTTPServer 1234

and point your browser at the port. eg:

$ firefox http://localhost:1234

Project Links

bs-demo's People

Contributors

jarret 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.