TriviaPP’s build pipeline flows through four tools in sequence: Angular CLI compiles TypeScript and bundles assets, Ionic CLI layers on mobile-ready tooling and the development server, Capacitor bridges the web output into a native Android shell, and finally Android Studio packages and deploys the APK. Understanding how each layer is configured helps you set up a local environment and produce release builds consistently.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dreancaste/TriviaPP/llms.txt
Use this file to discover all available pages before exploring further.
Package Scripts
The following npm scripts are defined inpackage.json:
| Script | Command | Purpose |
|---|---|---|
npm start | ionic serve | Starts the Ionic development server at http://localhost:8100 with live-reload |
npm run build | ng build | Compiles the Angular app for production into www/browser |
npm test | ng test | Runs unit tests with Karma and Jasmine |
Capacitor Configuration
Capacitor is configured incapacitor.config.ts at the project root:
| Property | Value | Description |
|---|---|---|
appId | com.example.starwarstrivia | The Android package identifier (reverse-domain notation). Change this to your own domain before publishing to the Play Store. |
appName | Star Wars Trivia | The human-readable name shown on the device launcher and in Android Studio. |
webDir | www/browser | The directory Capacitor copies into the Android project. Must match Angular CLI’s outputPath. |
Ionic Project Metadata
Theionic.config.json file at the project root records high-level project metadata consumed by the Ionic CLI:
type: "angular" field tells the Ionic CLI to use the standard Angular builder (not the standalone bootstrapping variant). The capacitor integration entry enables the ionic capacitor command family as an alias for the npx cap commands below.
Android Build Flow
Build the Angular app
Compile and bundle the Angular application into Angular CLI will output optimised JavaScript, CSS, and assets into
www/browser:www/browser/. Ensure the build completes without errors before proceeding.Sync the web output to the Android project
Copy the contents of Run this after every
www/browser into the native Android project and update any installed Capacitor plugin configurations:npm run build — Capacitor does not watch for file changes automatically.Open Android Studio
Launch Android Studio with the Capacitor-generated Android project:Android Studio will index the project on first open. Wait for the Gradle sync to finish before attempting to build.
Key Dependencies
| Package | Version | Role |
|---|---|---|
@angular/core | ^17.3.12 | Application framework |
@ionic/angular | ^8.4.3 | UI component library and mobile UX primitives |
@capacitor/core | ^7.4.3 | Native runtime bridge |
@capacitor/android | ^7.4.3 | Android platform target |
aws-amplify | ^6.17.0 | Authentication via Amazon Cognito |
firebase | ^11.6.1 | Firestore for the daily leaderboard |
swiper | ^12.1.4 | Swipeable card UI used in the trivia question flow |
rxjs | ^7.8.1 | Reactive utilities used throughout Angular services |