# Install dependencies (Foundry, Expo, Next, and the dependencies within those)
make install
# Open a new terminal window to start a local blockchain
make anvil
# Deploy vault
make deploy
# Try out the mobile app
make dev.mobile
# Try out the web app
make dev.web
#-------------------------------------------------------------------------------
# Mobile app (Expo: iOS)
# purpose: to record game performance
#-------------------------------------------------------------------------------
cd mobile-app
# Copy and paste your Google Maps API key to create a .env file
echo "EXPO_PUBLIC_GOOGLE_MAPS_KEY=your_google_maps_api_key" > .env
# Using npm because Expo needs extra setup to use pnpm
npm install
npx expo start
#-------------------------------------------------------------------------------
# Smart contract (Foundry)
# purpose: for money vault
#-------------------------------------------------------------------------------
cd contract
forge build
#-------------------------------------------------------------------------------
# Frontend (Web)
# purpose: analytics
#-------------------------------------------------------------------------------
cd frontend
pnpm add @rainbow-me/rainbowkit
pnpm add wagmi viem@2.x @tanstack/react-query
# UI related
pnpm add react-icons
# Frontend testing
pnpm add -D @synthetixio/synpress
pnpm create playwright
# Run frontend tests
pnpm exec playwright test
pnpm exec playwright test --ui
pnpm exec playwright test --headed
# Create cache for frontend tests
pnpm synpress
pnpm synpress tests/wallet-setup
Reported: Synthetixio/synpress#1285
[🐛 Bug]: CLI's wallet-setup cache builder looks for wallet-setup in a different location to docs
Description
For wallet-setup config, docs is using wallet-setup/basic.setup.ts
but npx synpress
looks in test/wallet-setup/basic.setup.ts
. Using tests/
(with letter "s") prefix errors. User can resolve this by specifying the path with npx synpress tests/wallet-setup
.
Fix suggestion
either:
- (Preferred fix) update docs to instruct users to use
tests/wallet-setup/basic.setup.ts
(this matches thetests/
directory forexample.spec.ts
in the docs), and then update CLI to look intests/
instead oftest/
or
- update CLI to look in
wallet-setup/
instead oftest/wallet-setup/
.