Prerequisites
Before setting up the DPM Delivery Mobile app, ensure you have the following tools and software installed on your development machine.Required Software
Node.js
Node.js
Version: LTS (18.x or higher recommended)Node.js is required to run the Expo development server and build tools.Installation:
- Download from nodejs.org
- Or use a version manager like nvm:
Bun
Bun
Version: Latest stableBun is the recommended package manager for this project, offering faster installation and runtime performance.Installation:
While bun is recommended, you can also use npm or yarn. All examples in this documentation use bun, but the commands are interchangeable.
Expo CLI
Expo CLI
Version: LatestExpo CLI is used to run and build the application. You don’t need to install it globally—Optional Global Installation:
npx expo works out of the box.Platform-Specific Setup
Choose the platform(s) you want to develop for and follow the corresponding setup instructions.- iOS
- Android
- Web
iOS Development Setup
iOS development requires a Mac with Xcode installed.Install Xcode
iOS Simulator
Xcode includes the iOS Simulator, which allows you to test the app without a physical device.Launch Simulator:The app is configured to support both iPhone and iPad (see
app.json:12).Physical iOS Device
To run on a physical iOS device:- Connect your iPhone/iPad via USB
- Enable Developer Mode on the device (Settings > Privacy & Security > Developer Mode)
- Trust your Mac when prompted
- Run
bun run ios --device
Verifying Your Setup
After completing the installation, verify your development environment:Installing the Project
Once your development environment is ready:Next Steps
Quickstart Guide
Get the app running in minutes
Project Structure
Understand the codebase organization
Environment Setup
Learn about environment configuration
Configuration
Configure the app for your needs
Troubleshooting
Command not found errors
Command not found errors
If you see “command not found” errors:
- Ensure the tool is installed correctly
- Verify PATH environment variables
- Restart your terminal
- Run
source ~/.bashrc(or~/.zshrc) to reload shell configuration
Android SDK issues
Android SDK issues
If Android tools aren’t recognized:
- Verify ANDROID_HOME is set correctly
- Ensure Android SDK is installed via Android Studio
- Check that platform-tools are in your PATH
iOS pod install failures
iOS pod install failures
If CocoaPods installation fails:
Permission errors
Permission errors
If you encounter permission errors: