Working example of oauth login with feathersjs and cordova ios and android
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
build
config
src
static
.babelrc
.editorconfig
.eslintignore
.eslintrc.js
.gitignore
.postcssrc.js
README.md
config.xml
index.html
index_mobile.html
package-lock.json
package.json
screenshot.jpg

README.md

screenshot

feathers-cordova-oauth-example

Working example of oauth login with feathersjs and cordova ios and android

More info on this blog post.

Installation

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.

Build Setup

# 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

For a detailed explanation on how things work, check out the guide and docs for vue-loader.

Dependencies

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

cordova requirements