Installation Guide
This guide covers everything you need to set up a complete development environment for CryptoTracker, including platform-specific requirements for iOS and Android development.Prerequisites
Before installing CryptoTracker, ensure you have the following installed on your system:Required Software
Node.js (v18 or later)
Node.js (v18 or later)
CryptoTracker requires Node.js v18 or later.Check your current version:Install or update Node.js:
- Download from nodejs.org
- Or use a version manager like nvm:
Git
Git
Git is required to clone the repository.Check if Git is installed:Install Git:
- macOS:
brew install git(requires Homebrew) - Windows: Download from git-scm.com
- Linux:
sudo apt-get install git(Ubuntu/Debian) orsudo yum install git(CentOS/RHEL)
Package Manager
Package Manager
Choose one of the following package managers:npm (comes with Node.js)yarn (optional)pnpm (optional)
Basic Installation
Install Dependencies
Install all required npm packages:This installs key dependencies including:
expo~53.0.9 - Expo frameworkreact-native0.79.2 - React Native coreexpo-router^5.0.6 - File-based routingtypescript~5.8.3 - TypeScript support- And many more (see
package.jsonfor full list)
The basic installation is sufficient for running the app on Expo Go or in a web browser. For native development, continue with the platform-specific setup below.
Platform-Specific Setup
iOS Development (macOS only)
Install Xcode
iOS development requires Xcode, which is only available on macOS.
- Download Xcode from the Mac App Store
- Install Command Line Tools:
- Accept the Xcode license:
Android Development
Install Android Studio
Download and install Android Studio.During installation, make sure to install:
- Android SDK
- Android SDK Platform
- Android Virtual Device (AVD)
Create an Android Virtual Device
- Open Android Studio
- Go to Tools > AVD Manager
- Click Create Virtual Device
- Select a device (e.g., Pixel 5)
- Download a system image (e.g., API 33)
- Finish the setup
Web Development
No additional setup required! Just run:http://localhost:19006.
Development Tools
Recommended VS Code Extensions
For the best development experience, install these VS Code extensions:- ES7+ React/Redux/React-Native snippets - Code snippets
- Prettier - Code formatter
- ESLint - Code linting
- React Native Tools - Debugging and IntelliSense
- TypeScript - TypeScript support
Running Tests
CryptoTracker uses Jest for testing:__tests__/CryptoCard.test.tsx):
Project Configuration
TypeScript Configuration
The project uses TypeScript with strict mode enabled. Seetsconfig.json:
Expo Configuration
Key configurations inapp.json:
The app uses Expo’s new architecture (
newArchEnabled: true) for improved performance.Troubleshooting
Metro bundler issues
Metro bundler issues
Clear the Metro bundler cache:Or manually clear caches:
iOS build failures
iOS build failures
Clean iOS build:
Android emulator won't start
Android emulator won't start
Check if virtualization is enabled in BIOS/UEFI:Try starting the emulator manually:
TypeScript errors
TypeScript errors
Ensure TypeScript dependencies are installed:Restart the TypeScript server in VS Code:
- Press
Cmd+Shift+P(Mac) orCtrl+Shift+P(Windows/Linux) - Type “TypeScript: Restart TS Server”
Next Steps
Quick Start
Start building with CryptoTracker
Architecture
Learn about the app’s architecture
Components
Explore reusable components
API Reference
Understand the API integration