-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
29 -- David White #505
Comments
Reading APIs: Github Issues & Firebase AuthPlease answer any of the questions from Monday that you didn't get to and additionally refresh your memory (and notes) on how authentication works with the Github API by answering these questions:
Firebase is a DataBase as a Service (DBaaS) tool that can act as a ReSTful API for our Angular JS front-end applications. It also has a free hosting tier for client-only applications like ours and a JavaScript authentication library to make integrating with OAuth providers -- like Google, Facebook, and GitHub -- much easier. We don't need the API parts yet, but read up on Authentication with Firebase, specifically authenticating with GitHub.
Don't Stop Believing... Continued.Finish up the three features you identified for GitHub Revolution: Angular EditionTonight, we need to learn about submitting forms with Angular and fetching from and pushing to a real API. At the bottom of your GitHub profile page, create placeholder templates for comments and a comment form like we see on every GitHub Issue. When the page loads, fetch all the comments for your WIP Issue from the GitHub API and display them in the comment template. When someone submits the comment form, add that comment to your WIP Issue via the API and display it in the list of comments. It should look and work exactly like the comment form on your WIP Issue! Hmm... BEAST MODEIf you haven't figured it out yet, you're going to need to authenticate in order to create those comments. A simple solution would be to ask the user for credentials right in the comment form, but do you really want to ask for their username and password every time? Should you ever ask for someone's password? Use Firebase Auth to authenticate with GitHub instead, and use the credentials you get to send the API request. NIGHTMARE MODEHave you ever noticed that GitHub seems to update itself? When I post a new comment on an Issue, it automatically appears on everyone else's screen, as long as they're still connected to the internet. How did they do that? Can you find out where in the API this activity is published? |
Journal/Tutorial/Resource:s4dmw/s4dmw.github.io#37 ReadingAPI's:Blog:remodeling to master: s4dmw/s4dmw.github.io#38 TIY-Github: |
test comment 1 |
test comment 2 |
28 -- YOUR NAME
USERNAME.github.io
journal-week-7
intomaster
feature/*
intoremodeling
remodeling
intomaster
journal-week-7
frommaster
The text was updated successfully, but these errors were encountered: