Hi beginners or not !
Today i will show you how to make an awesome mobile app from scratch with VueJS and Capacitor, directly compatible with iOS and Android mobile device.
The first question is
CapacitorJS is full package to set Node app compatible with iOS and Android,
The first step is the requirement:
- Android Studio with the latest SDK
- XCode latest version
and now you can start.
vue create app
set the configuration as you want, not very important at this step.
npm install @capacitor/core @capacitor/cli
now you can type this command:
npx cap init
respond to the questions,
so now very important step,
inside the capacitor.config.json file, change
ok you can build your project
npm run build
and now, it's ready to do the best thing :
npx cap add android
sudo gem install cocoapods npx cap add ios
and now do the magic thing:
npx cap copy
Now you can open XCode or Android Studio with this command :
// Android Studio npx cap open android // XCode npx cap open ios
Very awesome no ?
For iOs you need to install xcode dependency, follow XCode install instruction to perform this.
and for lazy people
- VueJS https://vuejs.org/
- CapacitorJS https://capacitorjs.com/
- Android Studio https://developer.android.com/studio
- XCode https://apps.apple.com/us/app/xcode/id497799835?mt=12