GithubHelp home page GithubHelp logo

bityoume / dacade-defi-dapp Goto Github PK

View Code? Open in Web Editor NEW

This project forked from unpwn4bl3/defi-dapp

0.0 0.0 0.0 77 KB

Shell 1.16% JavaScript 0.99% TypeScript 76.16% CSS 1.52% HTML 5.46% Move 14.71%

dacade-defi-dapp's Introduction

A defi-dapp for merchant hiring & trading

How to deploy

All following instruction is tested on devnet, with move version 2024.beta

  1. Configure your Google OAuth, add http://localhost:3000 to allowed JavaScript origin and redirect URL

  2. Build contracts/soldier and publish it

  3. Set address of contracts/suimarket of soldier in [addresses] section, build and publish it

  4. Create a merchant market

  5. In frontend/, use npm, pnpm or yarn to install dependency

  6. Create a .env file in frontend/, fill the content

REACT_APP_CLIENT_ID="<YOUR-GOOGLE-OAUTH-CLIENTID>"
REACT_APP_PROVER_URL="https://prover-dev.mystenlabs.com/v1"
REACT_APP_REDIRECT_URL="http://localhost:3000"
REACT_APP_OPENID_PROVIDER_URL="https://accounts.google.com/.well-known/openid-configuration"
REACT_APP_FULLNODE_URL="https://fullnode.devnet.sui.io:443"
REACT_APP_SOLDIER_PACKAGE_ID="<SOLDIER-PACKAGE-ID>"
REACT_APP_MARKET_PACKAGE_ID="<MARKET-PACKAGE-ID>"
REACT_APP_MARKET_ID="<MARKET-ID>"
  1. npm run start or pnpm run start to run the client

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.