Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
node_modules/
platforms/
plugins/
www/lib/
resources/
.idea/
1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/jsLibraryMappings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/libraries/simple_rest_ionic_node_modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 14 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 11 additions & 0 deletions .idea/simple-rest-ionic.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

745 changes: 745 additions & 0 deletions .idea/workspace.xml

Large diffs are not rendered by default.

86 changes: 69 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,78 @@
# simple-rest-ionic #
simple-rest-ionic is an implementation of @[simpulton's](https://github.com/simpulton) [simple-rest-website](https://github.com/simpulton/simple-rest-website) using the
[Ionic framework](http://ionicframework.com) for building native applications using AngularJS.
# Simple REST with ionic
A simple project using [Ionic framework](http://ionicframework.com) demonstrating CRUD powered by [Backand](https://www.backand.com).

## Prerequisites
You will need:
* [Git](http://git-scm.com/)
* [NodeJS and NPM](https://gist.github.com/isaacs/579814)

## Getting Started ##
1. Create new App in Backand with the following model (or just keep the default Model):

Run NPM and Bower to make sure all dependencies are downloaded:
```json
[
{
"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"
}
}
}
]

$ npm install
$ bower install
```
2. Once the App is ready, run the following commands:

Ensure you have ionic installed:
```bash
$ git clone git@github.com:backand/simple-rest-ionic.git
$ cd simple-rest-ionic
$ npm install
$ bower install
```

3. Ensure you have ionic installed:
```bash
$ npm install -g cordova ionic
```

4. You can run ionic in the browser or simulator:

$ npm install -g cordova ionic

Run in the web browser:

$ ionic serve

Run in an iOS simulator:

$ ionic build ios
$ ionic emulate ios
Run in the web browser:
```bash
$ ionic serve
```
or

Run in an iOS simulator:
```bash
$ ionic platform add ios
$ ionic build ios
$ ionic emulate ios
```

Ionic's [Getting Started](http://ionicframework.com/getting-started/) pages provide more help getting-started.
5 changes: 3 additions & 2 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "simple-rest-ionic",
"private": "true",
"devDependencies": {
"ionic": "driftyco/ionic-bower#1.0.0-beta.14"
"ionic": "driftyco/ionic-bower#1.1.0",
"angularbknd-sdk": "1.8.0"
}
}
}
30 changes: 30 additions & 0 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,37 @@
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="3000"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
<platform name="ios">
<icon src="resources/ios/icon/icon.png" width="57" height="57"/>
<icon src="resources/ios/icon/icon@2x.png" width="114" height="114"/>
<icon src="resources/ios/icon/icon-40.png" width="40" height="40"/>
<icon src="resources/ios/icon/icon-40@2x.png" width="80" height="80"/>
<icon src="resources/ios/icon/icon-50.png" width="50" height="50"/>
<icon src="resources/ios/icon/icon-50@2x.png" width="100" height="100"/>
<icon src="resources/ios/icon/icon-60.png" width="60" height="60"/>
<icon src="resources/ios/icon/icon-60@2x.png" width="120" height="120"/>
<icon src="resources/ios/icon/icon-60@3x.png" width="180" height="180"/>
<icon src="resources/ios/icon/icon-72.png" width="72" height="72"/>
<icon src="resources/ios/icon/icon-72@2x.png" width="144" height="144"/>
<icon src="resources/ios/icon/icon-76.png" width="76" height="76"/>
<icon src="resources/ios/icon/icon-76@2x.png" width="152" height="152"/>
<icon src="resources/ios/icon/icon-small.png" width="29" height="29"/>
<icon src="resources/ios/icon/icon-small@2x.png" width="58" height="58"/>
<icon src="resources/ios/icon/icon-small@3x.png" width="87" height="87"/>
<splash src="resources/ios/splash/Default-568h@2x~iphone.png" height="1136" width="640"/>
<splash src="resources/ios/splash/Default-667h.png" height="1334" width="750"/>
<splash src="resources/ios/splash/Default-736h.png" height="2208" width="1242"/>
<splash src="resources/ios/splash/Default-Landscape-736h.png" height="1242" width="2208"/>
<splash src="resources/ios/splash/Default-Landscape@2x~ipad.png" height="1536" width="2048"/>
<splash src="resources/ios/splash/Default-Landscape~ipad.png" height="768" width="1024"/>
<splash src="resources/ios/splash/Default-Portrait@2x~ipad.png" height="2048" width="1536"/>
<splash src="resources/ios/splash/Default-Portrait~ipad.png" height="1024" width="768"/>
<splash src="resources/ios/splash/Default@2x~iphone.png" height="960" width="640"/>
<splash src="resources/ios/splash/Default~iphone.png" height="480" width="320"/>
</platform>
</widget>
19 changes: 15 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "simple-rest-ionic",
"version": "1.0.0",
"description": "simple-rest-ionic: An Ionic project",
"repository" : "https://github.com/simpulton/simple-rest-ionic.git",
"repository": "https://github.com/backand/simple-rest-ionic",
"dependencies": {
"gulp": "^3.5.6",
"gulp-sass": "^0.7.1",
"gulp-sass": "^1.3.3",
"gulp-concat": "^2.2.0",
"gulp-minify-css": "^0.3.0",
"gulp-rename": "^1.2.0"
Expand All @@ -14,5 +14,16 @@
"bower": "^1.3.3",
"gulp-util": "^2.2.14",
"shelljs": "^0.3.0"
}
}
},
"cordovaPlugins": [
"cordova-plugin-device",
"cordova-plugin-console",
"cordova-plugin-whitelist",
"cordova-plugin-splashscreen",
"cordova-plugin-statusbar",
"ionic-plugin-keyboard"
],
"cordovaPlatforms": [
"ios"
]
}
Binary file added www/.DS_Store
Binary file not shown.
33 changes: 18 additions & 15 deletions www/lib/ionic/css/ionic.css → www/css/ionic.app.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
/*!
* Copyright 2014 Drifty Co.
* http://drifty.com/
*
* Ionic, v1.0.0-beta.14
* A powerful HTML5 mobile app framework.
* http://ionicframework.com/
*
* By @maxlynch, @benjsperry, @adamdbradley <3
*
* Licensed under the MIT license. Please see LICENSE for more information.
*
*/
/*
To customize the look and feel of Ionic, you can override the variables
in ionic's _variables.scss file.

For example, you might change some of the default colors:

$light: #fff !default;
$stable: #f8f8f8 !default;
$positive: #387ef5 !default;
$calm: #11c1f3 !default;
$balanced: #33cd5f !default;
$energized: #ffc900 !default;
$assertive: #ef473a !default;
$royal: #886aea !default;
$dark: #444 !default;
*/
/*!
Ionicons, v1.5.2
Created by Ben Sperry for the Ionic Framework, http://ionicons.com/
Expand All @@ -19,8 +22,8 @@
*/
@font-face {
font-family: "Ionicons";
src: url("../fonts/ionicons.eot?v=1.5.2");
src: url("../fonts/ionicons.eot?v=1.5.2#iefix") format("embedded-opentype"), url("../fonts/ionicons.ttf?v=1.5.2") format("truetype"), url("../fonts/ionicons.woff?v=1.5.2") format("woff"), url("../fonts/ionicons.svg?v=1.5.2#Ionicons") format("svg");
src: url("../lib/ionic/fonts/ionicons.eot?v=1.5.2");
src: url("../lib/ionic/fonts/ionicons.eot?v=1.5.2#iefix") format("embedded-opentype"), url("../lib/ionic/fonts/ionicons.ttf?v=1.5.2") format("truetype"), url("../lib/ionic/fonts/ionicons.woff?v=1.5.2") format("woff"), url("../lib/ionic/fonts/ionicons.svg?v=1.5.2#Ionicons") format("svg");
font-weight: normal;
font-style: normal; }

Expand Down
1 change: 1 addition & 0 deletions www/css/ionic.app.min.css

Large diffs are not rendered by default.

Loading