Prerequisites
Before you begin, ensure you have the following tools installed:Node.js and npm
Capacitor CLI
The Capacitor CLI is included in the project dependencies and will be installed with npm install.
Platform-Specific Tools
- Android
- iOS
Install Android Studio for Android development:
- Download from developer.android.com
- Install Android SDK (API 33 or higher)
- Configure Android SDK path in environment variables
- Install Java JDK 17
Clone and Install
Install Dependencies
Install all npm dependencies:This will install:
- Angular 18.2.x
- Ionic 8.4.x
- Capacitor 7.4.x
- All project dependencies from package.json
Configure Environment
Set up your environment variables. See the Configuration page for details on:
- API endpoint configuration
- Mapbox access token
- WebSocket connection settings
Running the Development Server
Web Browser Development
Run the app in a web browser for rapid development:http://localhost:8100.
Development with Live Reload
For continuous build during development:ng build --watch --configuration development for automatic rebuilds on file changes.
Running on Device/Emulator
Android
iOS
Available npm Scripts
Frompackage.json, the following scripts are available:
| Script | Command | Description |
|---|---|---|
npm start | ng serve | Start development server |
npm run build | ng build | Build the app for production |
npm run watch | ng build --watch --configuration development | Build with watch mode |
npm test | ng test | Run unit tests with Karma |
npm run lint | ng lint | Run ESLint on the codebase |
Testing the Setup
Verify your setup is working:-
Start the development server:
-
Open your browser to
http://localhost:8100 - You should see the Rodando Passenger app login screen
- Check the browser console for any errors
Troubleshooting
Port Already in Use
If port 8100 is already in use:Node Modules Issues
If you encounter dependency issues:Capacitor Sync Issues
If Capacitor sync fails:Android Emulator Connection
The API URLhttp://10.0.2.2:3000 is specifically for Android emulators:
10.0.2.2is the special IP that maps tolocalhoston the host machine- For physical devices, use your computer’s local IP address
- For iOS simulators, use
localhostor127.0.0.1
Next Steps
Configuration
Configure environment variables, API endpoints, and build settings
Build & Deploy
Learn how to build and deploy the app to production