Installation Guide
This guide will walk you through setting up the RIS Gran Chimú mobile app on your local development machine.Prerequisites
Before installing the app, ensure you have the following tools installed:Install Node.js
Download and install Node.js (version 18 or higher recommended).
The app uses npm as its package manager. You can also use yarn if preferred.
Install Expo Go App
Install the Expo Go app on your mobile device to test the application:
- Android: Download from Google Play Store
- iOS: Download from Apple App Store
Installation Steps
Clone the Repository
Clone the RIS Gran Chimú source code to your local machine:Alternatively, if you have the source code as a zip file, extract it and navigate to the directory.
Install Dependencies
Install all required npm packages:This will install all dependencies listed in
package.json, including:- Expo SDK 54
- React Native 0.81
- Axios for API calls
- Expo Router for navigation
- TypeScript and all development tools
The installation may take a few minutes depending on your internet connection.
Configure API Endpoint
Configure the backend API URL in Options:
src/services/apiClient.ts.Open the file and verify or update the BASE_URL:src/services/apiClient.ts
- Production: Use
https://ris-gran-chimu-backend.vercel.app/api(default) - Local Development: Use
http://localhost:3000/apiif running the backend locally - Custom Server: Replace with your own backend URL
Project Structure
After installation, your project directory will contain:Key Dependencies
The app includes these major dependencies:Core Framework
Core Framework
- expo (~54.0.33): Development framework
- react (19.1.0): UI library
- react-native (0.81.5): Mobile framework
- typescript (~5.9.2): Type safety
Navigation & Routing
Navigation & Routing
API & Storage
API & Storage
- axios (^1.12.2): HTTP client
- expo-secure-store (~15.0.8): Secure token storage
- @react-native-async-storage/async-storage (^2.2.0): Local storage
UI & Icons
UI & Icons
- lucide-react-native (^0.542.0): Icon library
- expo-blur (~15.0.8): Blur effects
- expo-haptics (~15.0.8): Haptic feedback
Troubleshooting
Installation fails with permission errors
Installation fails with permission errors
Try running the command with elevated permissions or fixing npm permissions:
Metro bundler port already in use
Metro bundler port already in use
If port 8081 is already in use:
TypeScript errors after installation
TypeScript errors after installation
Clear the cache and reinstall:
Next Steps
Quick Start
Get the app running on your device in 5 minutes
API Reference
Learn about the backend API integration
