Git Product home page Git Product logo

agoric-dapp-card-store's Introduction

Baseball Card Store Dapp

TL;DR:

The Baseball Card Store Dapp sells baseball cards as NFT tokens in exchange for money.

Install the prerequisites.

Execute every command below in a seperate terminal

Install the sdk

cd agoric-sdk
git checkout 65d3f14c8102993168d2568eed5e6acbcba0c48a
yarn && yarn build

Install the dapp

git clone https://github.com/Jorge-Lopes/agoric-assignment-6.git
cd agoric-assignment-6
agoric install

Start your local-chain

cd agoric-sdk/packages/cosmic-swingset
make scenario2-setup && make scenario2-run-chain

Start ag-solo

cd agoric-sdk/packages/cosmic-swingset
make scenario2-run-client

Open your wallet UI

cd agoric-sdk/packages/cosmic-swingset/t1
agoric open --repl

Deploy the contract

cd agoric-assignment-6
agoric deploy contract/deploy.js api/deploy.js

Start UI,

# Navigate to the `ui` directory and start a local server
cd agoric-assignment-6/ui && yarn start

Using the Dapp

  1. A window for your wallet should open.
  2. Under "Dapps" in the wallet, enable the CardStore Dapp.
  3. Now you should be able to click on a card to make an offer to buy it.
  4. Approve the offer in your wallet
  5. View the card in your wallet.

Card Store

To learn more about how to build Agoric Dapps, please see the Dapp Guide.

See the Dapp Deployment Guide for how to deploy this Dapp on a public website, such as https://cardstore.testnet.agoric.com/

agoric-dapp-card-store's People

Contributors

jorge-lopes avatar anilhelvaci avatar

Stargazers

Samuel Siegart avatar

Watchers

 avatar

Forkers

xinminsu

agoric-dapp-card-store's Issues

UI bug

Current error message

cd ui && yarn start

Failed to compile.

/Users/jorgelopes/Documents/GitHub/Agoric/agoric-sdk/packages/store/src/patterns/patternMatchers.js 44:24
Module parse failed: Identifier directly after number (44:24)
File was processed with these loaders:
 * ../node_modules/@pmmmwh/react-refresh-webpack-plugin/loader/index.js
 * ../node_modules/react-scripts/node_modules/babel-loader/lib/index.js
You may need an additional loader to handle the result of these loaders.
| export const defaultLimits = harden({
|   decimalDigitsLimit: 100,
>   stringLengthLimit: 100_000,
|   symbolNameLengthLimit: 100,
|   numPropertiesLimit: 80,
```

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.