![run 8 v2 getting started run 8 v2 getting started](https://wiki.eclipse.org/images/2/23/Getting_started_new_module_ui_project_run.png)
#Run 8 v2 getting started install
Next, install any of the desired native platforms: npx cap add android
![run 8 v2 getting started run 8 v2 getting started](https://wpblog.semaphoreci.com/wp-content/uploads/2020/01/Screenshot7-1.png)
web-dir flag to set the web assets folder (the default is This command will prompt you to enter the name of your app and the app id (the package name for Android and the bundle identifier for iOS). Note: npx is a new utility available in npm 5 or above that executes local binaries/scripts to avoid global installs. Npm install initialize Capacitor with your app information. To add Capacitor to your web app, run the following commands: cd my-app element is needed in the main index.html file, as Capacitor is injected there upon app initialization. Package.json file and a folder containing all web assets are required to get started. Adding Capacitor to an existing web appĬapacitor was designed to drop into any existing modern JavaScript web app. Adding Capacitor to an existing Ionic App
![run 8 v2 getting started run 8 v2 getting started](https://koenig-media.raywenderlich.com/uploads/2020/06/elasticsearchinstalllocalhost.png)
Pod repo update before starting a new project, if you plan on building for iOS using a Mac. Most importantly, make sure you update CocoaPods using Make sure you have all the required Dependencies installed for the platforms you will be building for. We strongly recommend starting a Capacitor project with your mobile frontend framework of choice (such as Not come with any specific set of UI controls which you will most likely need unless you’re building a game or something similar. Capacitor was designed primarily to drop-in to existing frontend projects, but comes with a simple starting project structure if you’d like to start fresh.Ĭapacitor provides a native mobile runtime and API layer for web apps. There are two ways to start using Capacitor: adding Capacitor to an existing frontend project (recommended), or starting a fresh project.