cp .env.sample .env
REACT_APP_VERSION=$npm_package_version
REACT_APP_SUPPORTED_NETWORK=1337
REACT_APP_URL=http://localhost:8545
REACT_APP_ZKCREAM_FACTORY_ADDRESS=0x38cF23C52Bb4B13F051Aec09580a2dE845a7FA35
REACT_APP_MERKLETREE_HEIGHT=4
REACT_APP_ZERO_VALUE=2558267815324835836571784235309882327407732303445109280607932348234378166811
REACT_APP_API_HOST=http://localhost:3000
REACT_APP_INFURA_KEY="XXXXXXXXXXXXXXXX"
yarn start
- Start ipfs and ganache
yarn local
This command will start ipfs
docker container and ganache
.
- Migrate zkcream contract
git clone https://github.com/couger-inc/cream.git
cd cream
yarn
yarn build
cd packages/contracts
yarn migrate
- Start api server
git clone https://github.com/zkcream/zkcream-api-server.git
cd zkcream-api-server
yarn
yarn buid
yarn start
This command will run backend api-server for web frontend
- Start frontend
yarn start