Demo showing how to go back to the home view of a specific tab everytime the tab is opened
See more Ionic work on my blog blog.clearlyinnovative.com
Forked from Ionic's Pen Tabs And Navigation: 1.0.0-beta.6.
A Pen by aaron k saunders on CodePen.
Demo showing how to go back to the home view of a specific tab everytime the tab is opened
See more Ionic work on my blog blog.clearlyinnovative.com
Forked from Ionic's Pen Tabs And Navigation: 1.0.0-beta.6.
A Pen by aaron k saunders on CodePen.
// | |
// | |
var Q = require('q'); // add q.js library - https://github.com/kriskowal/q | |
var Cloud = require("ti.cloud"); // add in tiapp.xml | |
Cloud.debug = true; | |
function cloudCreateObjects(_data) { | |
var deferred = Q.defer(); |
// UserService.js | |
// | |
// Aaron K Saunders | |
// Clearly Innovative Inc | |
// | |
// http://www.clearlyinnovative.com/blog/post/tag/ionic-framework | |
// | |
/*global Firebase*/ | |
(function(angular) { | |
'use strict'; |
$.getView().open(); | |
// set the sync adapter | |
Alloy.Backbone.sync = function(method, model, opts) { | |
require("alloy/sync/properties").sync(method, model, opts); | |
}; | |
// createing a model now just requires the collection_name field | |
function createCountryModel(_collection_name) { |
// | |
// Project-Bridging-Header.h | |
// networkingtestApp | |
// | |
// Created by Aaron Saunders on 10/31/14. | |
// Copyright (c) 2014 Aaron Saunders. All rights reserved. | |
// | |
#ifndef networkingtestApp_Project_Bridging_Header_h | |
#define networkingtestApp_Project_Bridging_Header_h |
grunt build:dist
Enter the grunt command to build the application from project root
grunt build:dist
Enter the following commands to copy needed files to dist directory, this assumes you placed them in a folder called acs_deploy
// | |
// Angular JS documentation on $http Service | |
// https://docs.angularjs.org/api/ng/service/$http | |
// | |
// Referenced Blog Post | |
// http://uncorkedstudios.com/blog/multipartformdata-file-upload-with-angularjs | |
// | |
// Appcelerator Cloud Services Documentation - Photos & Custom Objects | |
// http://docs.appcelerator.com/cloud/latest/#!/api/Photos | |
// http://docs.appcelerator.com/cloud/latest/#!/api/CustomObjects |
config.json | |
reading-image.png |
This is an example of how to scaffold API endpoints to list / get / create / update / delete Posts in a Keystone website.
It's a modification of the default project created with the yo keystone
generator (see https://github.com/JedWatson/generator-keystone)
Gists don't let you specify full paths, so in the project structure the files would be:
routes-index.js --> /routes/index.js // modified to add the api endpoints
routes-api-posts.js --> /routes/api/posts.js // new file containing the Post API route controllers
To implement API authentication in KeystoneJS, you need the following:
For key based authentication
For session based authentication