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
Build the application for production:
# npm
npm run build
# pnpm
pnpm run build
# yarn
yarn build
# bun
bun run build
Locally preview production build:
# npm
npm run preview
# pnpm
pnpm run preview
# yarn
yarn preview
# bun
bun run preview
Check out the deployment documentation for more information.
- Install Ionic CLI globally with:
# npm
npm install -g @ionic/cli
# yarn
yarn global add @ionic/cli
- Enable Capacitor:
# ionic cli
ionic integrations enable capacitor
# npx
npx @ionic/cli integrations enable capacitor
- Add the Android and/or iOS platform(s):
# ionic cli
ionic capacitor add ios
ionic capacitor add android
# npx
npx @ionic/cli capacitor add ios
npx @ionic/cli capacitor add android
- There are system requirements for building and running iOS and Android apps locally. See the Capacitor environment setup documentation for more details.
- Create a web build:
# npm
npm run generate
# npx
npx nuxi generate
#or:
npx nuxi build
- Update your Capacitor project directories with your latest app build:
npx cap sync
- Run the app from the command line using an installed device OR:
- You must set in Environment variable JAVA_HOME the path found in:
File -> Settings -> Build, Execution, Deployment -> Build Tools -> Gradle JDK
- Something like: JAVA_HOME=D:\Android\Android Studio\jbr
npx cap run android
npx cap run ios
- (Optional) Open the project in Android Studio or XCode, respectively:
npx cap open android
npx cap open ios
- (!imortant) In package.json scripts section add: "appflow:build": "npm run generate". If such command not set, when build and deploy with Appflow "npm run build" will be runned and build failed because no "dist" directory found in root
- Start by creating a repository in the Git provider of your choice and pushing your local project to the remote repository
- Log in or create an account at ionic.io to get started with Appflow
- Import an existing app and select the repository for your Nuxt project.
- Once connected, you’ll see the most recent commit in the Commits screen in Appflow. Select ‘Start build’ from the latest commit.
- This brings you to the build screen. Select the Android platform, and the default latest Build stack and Debug build type will pre-select. For this build type, no signing certificates, custom environments, or native configs are needed.
- This kicks off the process for a cloud native build of the app for Android devices. Once the build is complete, you can download the .apk and .aab files to run in an emulator or on a device.
- When your app is ready for a production build, you can store signing certificates, provisioning profiles, and app store credentials in Appflow to easily build and deploy for end users.
Check out the deployment documentation for more information.