Look at the Nuxt 3 documentation to learn more.
Make sure to install the dependencies:
# npm
npm install
# pnpm
pnpm install
# yarn
yarn install
# bun
bun install
Start the development server on http://localhost:3000
:
# npm
npm run dev
# pnpm
pnpm run dev
# yarn
yarn dev
# bun
bun run dev
Make nuxt and Capacitor sync
yarn sync
Open app in Android Studio, to run it
yarn open:android
Run the app in a Connected Android Device/Emulator
yarn android
Open android in Development mode
Add the lines below to run the application in Development
{
"appId": "dev.patogordo.nuxt3",
"appName": "nuxt3-android",
"webDir": "dist",
"bundledWebRuntime": false,
"server": {
"url": "http://192.168.1.15:3000",
"cleartext": true
}
}
Also run the nuxt development server with the command below
yarn dev