Working example of oauth login with feathersjs and cordova ios and android
More info on this blog post.
npm install cordova platform add ios android
Warning: You need a working FeathersJS backend ready for the github oauth login. This tutorial explains how to get one.
# serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build # build for mobile npm run build-mobile # run the ios / android app cordova run ios cordova run android # build for production and view the bundle analyzer report npm run build --report
npm install -g cordova npm install
The ios dependencies (if you need to build an ios app) [only mac]
sudo xcode-select -s /Applications/Xcode.app/Contents/Developer npm install -g ios-sim ios-deploy brew install cocoapods pod setup
And the android dependencies. Here I'm using cask as package manager to install them, if you are not in mac use your favorite one.
brew tap caskroom/cask brew cask install caskroom/versions/java8 touch ~/.android/repositories.cfg brew cask install android-sdk brew install gradle
Add the mobile platforms that you need
cordova platform add ios # or / and cordova platform add android
Check that everything is okay