Getting Started
Welcome to Pet Tracker! This guide will help you set up the development environment and get the app running on your machine.
Prerequisites
Before you begin, ensure you have the following installed:
Required Software
- Node.js (v18 or later) - Download
- npm or pnpm (pnpm recommended) - Install pnpm
- Git - Download
Mobile Development (Optional)
For testing on physical devices or simulators:
- Android Studio (for Android development) - Download
- Xcode (for iOS development, macOS only) - Download
Expo CLI
Install the Expo CLI globally:
bash
npm install -g @expo/cli
Installation
Clone the repository:
bashgit clone https://github.com/yourusername/pet-tracker.git cd pet-tracker
Install dependencies:
bashpnpm install # or npm install
Set up environment variables:
bashcp .env.example .env
Edit the
.env
file with your configuration (see Environment Setup).Start the development server:
bashpnpm start:dev # or npm run start:dev
Verification
After installation, verify everything works:
- Development server starts without errors
- QR code appears in the terminal
- Expo Dev Client can connect to your app
- App loads on your device/simulator
Next Steps
- Environment Setup - Configure different environments
- Project Structure - Understand the codebase
- Running the App - Learn development workflows
Troubleshooting
Common Issues
Node.js version mismatch:
bash
node --version # Should be v18 or later
Expo CLI not found:
bash
npm list -g @expo/cli # Check if installed globally
Port already in use:
bash
npx expo start --port 19001 # Use different port
Metro bundler issues:
bash
npx expo start --clear # Clear Metro cache
Need help? Check our GitHub Issues or Discussions.