From a29605783b8d3378562c25fce5c18e5319dea8c1 Mon Sep 17 00:00:00 2001 From: Lacey Rice Date: Tue, 20 Oct 2015 20:36:25 -0400 Subject: [PATCH 1/2] firebase and restangular questions --- CheatSheets/firebase-restangular.md | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 CheatSheets/firebase-restangular.md diff --git a/CheatSheets/firebase-restangular.md b/CheatSheets/firebase-restangular.md new file mode 100644 index 0000000..7ee0915 --- /dev/null +++ b/CheatSheets/firebase-restangular.md @@ -0,0 +1,48 @@ +##Firebase + +1. What operations does the Firebase REST API support? + +`get`, `put`, `post`, `patch`, `delete` + + +2. Do I need to authenticate with Firebase to read or create data? + +No + + +3. What format does Firebase expect data to be in? + +`.json` + + +##Restangular + +1. How do I configure a REST-ful API like Github? + +[With the `run` configuration.](https://github.com/mgonto/restangular/blob/master/README.md#how-to-configure-them-globally) + + +2. [How would I request a list of...](https://github.com/mgonto/restangular/blob/master/README.md#collection-methods) + +* Repos for the class Org? + +`customGETLIST(path for class Org)` + +* Issues for the class Repo? + +`customGETLIST(path for class Repo)` + +* Issues for a specific Milestone? + +`customGETLIST(path for milestone?)` + + +##ngRouter +How do I define... +...a route for my application with ngRouter? +...dynamic pieces (params) to routes? +...the template to load for a route? +...the controller to trigger for a route? +How do I retrieve... +...the params from a route in a controller? +...the controller for a route in the view? From 6755da5b121ec4de24fb9e3a577ad4ab603256c1 Mon Sep 17 00:00:00 2001 From: Lacey Rice Date: Wed, 21 Oct 2015 22:01:59 -0400 Subject: [PATCH 2/2] Questions from 10-21 --- CheatSheets/firebase-restangular.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/CheatSheets/firebase-restangular.md b/CheatSheets/firebase-restangular.md index 7ee0915..5d4f1a3 100644 --- a/CheatSheets/firebase-restangular.md +++ b/CheatSheets/firebase-restangular.md @@ -46,3 +46,32 @@ How do I define... How do I retrieve... ...the params from a route in a controller? ...the controller for a route in the view? + +## 10/21 +1. What credentials do I need to authenticate with the Github API? + +Either a username and password, a token, or a key and secret. + + +2. How can I provide authentication credentials to Github? + +Best way is to go to settings on GitHub and to Personal Access Tokens. + + +3. How can I use [Firebase to authenticate with GitHub?](https://www.firebase.com/docs/web/guide/login/github.html) + +You need to [register an application on GitHub](https://github.com/settings/applications) that includes the application name, homepage url, application description, and authorized callback url `https://auth.firebase.com/v2//auth/github/callback`. + +5. What type of information will Firebase require from me to integrate with GitHub? + +Need GitHub application credentials (Client ID and Client Secret) + + +5. What credentials will Firebase provide me when I have successfully authenticated? + +A client ID and secret? + + +6. How and where do I need to use those credentials? + +On the Login & Auth section of the App Dashboard.