backand-ionic-social
Create mobile application with ionic and backand.
1- To run starter, download zip and run ionic start:
ionic start myApp https://github.com/backand/backand-ionic-social
cd myApp
2 - Install InAppBrowser cordova plugin.
cordova plugin add cordova-plugin-inappbrowser
ionic plugin add https://github.com/apache/cordova-plugin-whitelist.git
3 - Run with ionic serve function
ionic serve
4 - Sign up to application and add new users with Signup tab.
5 - Sign up with all leads social app, Facebook, Google+ and Gitub.
6 - Enjoy your mobile application, with backand at server side and full CRUD commands to server.
7 - Want to customize data model or change authorization? create a free personal application at backand.com
8 - Use 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"
}
}
}
]
9 - Change the app's parameters (/js/app.js file at line 14) in the Config section with your new app parameters:
BackandProvider.setAppName('Your-App-Name');
BackandProvider.setSignUpToken('Your-SignUp-Token');
BackandProvider.setAnonymousToken('Your-Anonymous-Token');