Prerequisites
Before you begin, ensure you have the following installed on your system:Node.js
Latest LTS version recommended
Package Manager
pnpm, npm, or yarn
Mobile Development
Android Studio or Xcode
Medusa Wallet uses [email protected] as the default package manager. While npm and yarn will work, pnpm is recommended for consistency with the project.
Installation
Install dependencies
Install the project dependencies using your preferred package manager:
The project uses Expo SDK 53 and React Native 0.79.5. All dependencies will be automatically installed.
Platform-specific setup
Set up your development environment for your target platform:
- iOS
- Android
- Install Xcode from the Mac App Store
- Install Xcode Command Line Tools:
- Install iOS Simulator (included with Xcode)
- Install CocoaPods dependencies:
Development Tools
Medusa Wallet includes several development tools to enhance your workflow:React Query DevTools
The app includes React Query DevTools for debugging API requests and cache management:Linting and Formatting
The project uses ESLint and Prettier for code quality:Testing
Run the test suite to ensure everything is working correctly:Troubleshooting
Metro bundler port conflict
Metro bundler port conflict
If you encounter port conflicts, the app uses port 8082 by default:You can change this in
package.json under the android script.Dependency installation issues
Dependency installation issues
If you encounter issues with dependencies:
- Clear the package manager cache:
- Delete
node_modulesand reinstall:
iOS build fails
iOS build fails
If iOS builds fail:
- Clean the build folder in Xcode
- Reinstall CocoaPods:
Android emulator not detected
Android emulator not detected
Ensure your Android emulator is running:
Next Steps
Once your environment is set up, you can:Learn the Architecture
Understand how Medusa Wallet is structured
Build and Run
Start developing and testing the app