A simple project using Ionic framework demonstrating CRUD powered by Backand.
You will need:
- Create new App in Backand with the following model (or just keep the default Model):
[
{
"name": "items",
"fields": {
"name": {
"type": "string"
},
"description": {
"type": "text"
},
"user": {
"object": "users"
}
}
},
{
"name": "users",
"fields": {
"email": {
"type": "string"
},
"firstName": {
"type": "string"
},
"lastName": {
"type": "string"
},
"items": {
"collection": "items",
"via": "user"
}
}
}
]
- Once the App is ready, run the following commands:
$ git clone git@github.com:backand/simple-rest-ionic.git
$ cd simple-rest-ionic
$ npm install
$ bower install
- Ensure you have ionic installed:
$ npm install -g cordova ionic
- You can run ionic in the browser or simulator:
Run in the web browser:
$ ionic serve
or
Run in an iOS simulator:
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios
Ionic's Getting Started pages provide more help getting-started.