Ionic Project README
Prerequisites
Ensure you have the following installed:
- Node.js (LTS recommended)
- Ionic CLI - Install via:
npm install -g @ionic/cli - Capacitor (if using native features)
Installation
Clone the repository and install dependencies:
# Clone the project
git clone <repository_url>
# Navigate to the project directory
cd <project_name>
# Install dependencies
npm install
Running the App
To serve the app in a browser with live reload:
npm run start OR ng serve
Building the App
Staging
Android Build
Ensure you have the Android SDK and Gradle installed. Then run:
ionic build --configuration=staging && npx cap sync android && npx cap copy android && npx cap open android
iOS Build
Ensure you have Xcode installed (macOS required). Then run:
ionic build --configuration=staging && npx cap sync ios && npx cap copy ios && npx cap open ios
Production
Android Build
Ensure you have the Android SDK and Gradle installed. Then run:
ionic build --prod && npx cap sync android && npx cap copy android && npx cap open android
iOS Build
Ensure you have Xcode installed (macOS required). Then run:
ionic build --prod && npx cap sync ios && npx cap copy ios && npx cap open ios
Additional Commands
To sync native changes:
ionic capacitor sync
To open the native project in Android Studio or Xcode:
ionic capacitor open android
ionic capacitor open ios
Ensure your Ionic CLI and Capacitor are up to date:
npm update -g @ionic/cli
npm update @capacitor/core @capacitor/cli
Description
Languages
TypeScript
42.1%
SCSS
28.8%
HTML
27.3%
Swift
1%
DM
0.4%
Other
0.4%