All following instruction is tested on devnet, with move version 2024.beta
-
Configure your Google OAuth, add
http://localhost:3000
to allowed JavaScript origin and redirect URL -
Build
contracts/soldier
and publish it -
Set address of
contracts/suimarket
ofsoldier
in[addresses]
section, build and publish it -
Create a merchant market
-
In
frontend/
, usenpm
,pnpm
oryarn
to install dependency -
Create a
.env
file infrontend/
, 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>"
npm run start
orpnpm run start
to run the client