Giter VIP home page Giter VIP logo

agoric-timed-auction's Introduction

Baseball Card Store Dapp

TL;DR:

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

This dapp requires the Fungible Faucet Dappto be running, so please follow the instructions to set up the Fungible Faucet Dapp first and give yourself some tokens. This dapp runs on port 3001, whereas the Fungible Faucet Dapp runs on port 3000.

Install the prerequisites.

Then in a first terminal in the directory where you want to put your dapp, install the dapp:

agoric init --dapp-template dapp-card-store my-card-store
cd my-card-store
agoric install
# The Agoric platform should be already started so there is no need to run `agoric start`

In a second terminal, deploy this contract and the API server

agoric deploy contract/deploy.js
agoric deploy api/deploy.js

In a third terminal,

# Navigate to the `ui` directory and start a local server
cd ui && yarn start

Then navigate to http://127.0.0.1:3001.

The Fungible Faucet Dapp is the simplest Agoric Dapp. It demonstrates the three important parts of a dapp and how they should be connected:

  1. the browser UI (the frontend)
  2. the API server (the backend)
  3. the on-chain contract

This dapp starts a local blockchain on your computer, and deploys a basic contract to that blockchain. It does not currently deploy or connect to the Agoric testnet.

This particular dapp UI is written in vanilla JS for simplicity (as opposed to using a framework).

Using the Dapp

  1. Navigate to http://127.0.0.1:3001.
  2. Enter agoric open in your terminal
  3. A window for your wallet should open.
  4. Under "Dapps" in the wallet, enable the CardStore Dapp.
  5. Now you should be able to click on a card to make an offer to buy it.
  6. Approve the offer in your wallet
  7. 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-timed-auction's People

Watchers

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