Skip to content

aaronksaunders/kinvey-starter-ionic2

Repository files navigation

kinvey-starter-ionic2-RC - Updated to work with latest release candidate

This project is being migrated to manage state using ngrx/store & ngrx/effects

Tested With Ionic Version

Cordova CLI: 6.3.0
Ionic Framework Version: 2.0.0-rc.4
Ionic CLI Version: 2.1.17
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.47
ios-deploy version: 1.8.6
ios-sim version: 5.0.6
OS: macOS Sierra
Node Version: v5.0.0
Xcode version: Xcode 8.2.1 Build version 8C1002

Checkout the repo and run npm install to download the required node modules for the project

Required Plugins

  • Camera
  • File

Create Account w/ Kinvey

  • We are using the Javascript API in this project not the angular module
  • When I upgraded to Ionic2 and the Kinvey JS API I did leave the original REST API code in the project if you are looking for that solution also

Setup

Edit the configuration file, src/providers/config.ts to contain the proper credentials from your kinvey account

export let KINVEY_BASE_URL = "https://baas.kinvey.com/";
export let appKey = "YOUR-APP-KEY-GOES-HERE"
export let secretKey = "YOUR-SECRET-KEY-GOES-HERE"
export let KINVEY_AUTH = btoa(appKey + ':' + secretKey)

Make sure in your kinvey console to create a collect named todo-collection and the object is structured like this

{
  description: "Sample To Do Description"
  title: "Sample To Do"
  status: "open"
}

The application demonstrates the following:

  • Login and Logout
  • Create New User Account
  • View Data Collection
  • Delete Object From Data Collection - swipe list item to expose delete button (In Progress)
  • Add Object to Data Collection
  • Using Camera Plugin to capture image and then upload file
  • Add File Objects as A Collection

Ionic 1 Version of Starter Project Can Be Found Here

##MORE IONIC2 SAMPLES HERE

About

kinvey-starter-ionic2-RC - Updated to work with latest release candidate, using ngrx/store & ngrx/effects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published