Giter Club home page Giter Club logo

blockxchnge's Introduction

Let's get started by installing the necessary dependencies:

If you intend to host your database locally, you will also require mongod, which is included in the MongoDB system (https://docs.mongodb.com/manual/installation/).

Also, if you don't already have Node.js, you can install it here (https://nodejs.org/en/download/).

The rest of the dependencies can be installed by running:

npm install

Open a terminal and run

mongod

Presently, there are three main schemas; one for the user credentials and information (credentials), another for storing the minimal information necessary for the block chain (blockchain), and one for storing block information (blockinfochain).

The corresponding servers can be started by opening terminals in src/backend and running nodemon credentialServer.js, nodemon blockServer.js and nodemon blockInfoServer.js, respectively.

Finally, run

npm start

to start the local development server (http://localhost:3000).

On the initial page, you can create an account, sign-in, or scroll down to learn about how the exchange works.

alt text

Scroll down, and you will see

alt text

Each account starts off with 2500 of paper currency, and users can deposit actual money to their account, which is handled through Stripe.

alt text

Navigate to the Create Block tab, and you can set-up a contract to your preference. This contract will be made available to other BlockXChnge users.

alt text

You'll notice the available contract appear on your Home page (see Home tab). This is where other users can click and decide whether to join your block.

alt text

Once the block is joined, you'll notice a new addition to the public block chain. The block's information (along with the previous block's hash) was hashed and is identifiable on the block chain via the block's summary.

alt text

blockxchnge's People

Contributors

d-thatcher avatar dependabot[bot] avatar

Watchers

 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.