capacitor_setup
Description:
In this phase, Capacitor will be installed and set up in the existing Angular application. This involves the integration of Capacitor into the Angular project, installing the required Capacitor packages, and initializing Capacitor for further use.
Steps:
-
Integrate Capacitor into the Angular application: In the root directory of your Angular project, run
npm install @capacitor/core @capacitor/cli
-
Adding Android:
@capacitor/android --legacy-peer-deps
-
Adding IOS:
@capacitor/ios --legacy-peer-deps
-
Initialize Capacitor:
npx cap init [appName] [appId]
, where [appName] is the name of your app, and [appId] is the domain identifier of your app (usually in reverse DNS format).
Edited by Tobias Walter