welcome to: Latinx Tech PDX

Slides:



Advertisements
Similar presentations
Module 6: Configuring Windows XP Professional to Operate in a Microsoft Network.
Advertisements

11 CONFIGURING AND MANAGING SHARED FOLDER SECURITY Chapter 8.
Installation and Deployment in Microsoft Dynamics CRM 4.0
70-290: MCSE Guide to Managing a Microsoft Windows Server 2003 Environment, Enhanced Chapter 10: Server Administration.
Bonrix Track & Trace System A GPS Based Vehicle Tracing System (SMS, GPRS/3G, Offline) Bonrix Software Systems Ahmedabad (INDIA) Website:
Module 2: Planning to Install SQL Server. Overview Hardware Installation Considerations SQL Server 2000 Editions Software Installation Considerations.
Amazon EC2 Quick Start adapted from EC2_GetStarted.html.
Securing LAMP: Linux, Apache, MySQL and PHP Track 2 Workshop PacNOG 7 July 1, 2010 Pago Pago, American Samoa.
Sharepoint Portal Server Basics. Introduction Sharepoint server belongs to Microsoft family of servers Integrated suite of server capabilities Hosted.
August 25, SSO with Microsoft Active Directory Presented by: Craig Larrabee.
Microsoft Windows 2003 Server. Client/Server Environment Many client computers connect to a server.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
CPSC203 Introduction to Computers Lab 69 By Jie Gao.
Copyright ®xSpring Pte Ltd, All rights reserved Versions DateVersionDescriptionAuthor May First version. Modified from Enterprise edition.NBL.
Deploying Chromebooks RICK NICHOLAS A.
How KeePass password safe can save you time and energy
Phone: Mega AS Consulting Ltd © 2007  CAT – the problem & the solution  Using the CAT - Administrator  Mega.
An Intro to Concurrent Versions System (CVS) ECE 417/617: Elements of Software Engineering Stan Birchfield Clemson University.
Module 4 : Installation Jong S. Bok
Diagnostic Pathfinder for Instructors. Diagnostic Pathfinder Local File vs. Database Normal operations Expert operations Admin operations.
Module 3 Configuring File Access and Printers on Windows 7 Clients.
Irvine Unified School District Library Media Elementary Type to Learn 4.
Google App Engine MemCache ae-09-session
 Registry itself is easy and straightforward in implementation  The objects of registry are actually complicated to store and manage  Objects of Registry.
CD Web XMS Training How to use the Xeno Media web site content management system.
Facebook is a social utility that connects you with the people around you. Use Facebook to…  Keep up with friends and family  Share photos and videos.
Leading firms through the next generation of change™
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Cognos 8 BI Configuration, Administration, and Upgrade Cognos 8 BI.
IBM Express Runtime Quick Start Workshop © 2007 IBM Corporation Deploying a Solution.
Integrity Check As You Well Know, It Is A Violation Of Academic Integrity To Fake The Results On Any.
Lindsey Velez, Director of Instructional Technology Single Sign-On One Click.
Vmware 2V0-621D Vmware Exam Questions & Answers VMware Certified Professional 6 Presents
What is Cloud Computing 1. Cloud computing is a service that helps you to perform the tasks over the Internet. The users can access resources as they.
Interstage BPM v11.2 1Copyright © 2010 FUJITSU LIMITED ADMINISTRATION.
Downloading and Installing GRASP-AF Workshop Ian Robson Information Analyst, North of England Cardiovascular Network.
Welcome to Zoom Training
Office 365 Help Desk Troubleshooting Guide
Presented by [Harshit Agrawal] 04/03/2017
Intro to Ethical Hacking
Data Virtualization Tutorial… SSL with CIS Web Data Sources
Stress Free Deployments with Octopus Deploy
Unit 7 Learning Objectives
How to use IoT in Bluemix
Users and Administrators
Using E-Business Suite Attachments
Get the Most Out of GoAnywhere: Agents
Avast Confidential.
App deployment in Cloud
Materials Engineering Product Data Management (ePDM)
Getting Started with LANGuardian
James Blankenship March , 2018
PSC Group, LLc Office 365/SharePoint Online Migration traps and tricks
Adding members to ArcGIS Online
Introduction to SharePoint Framework (SPFx)
Adding members to ArcGIS Online
Unit 9 NT1330 Client-Server Networking II Date: 8/9/2016
Implementing Listening Producers in IBM Sterling Filegateway
Angular 2 & Firebase App TraversyMedia.com.
Microsoft Visual Source Safe How & Why
Cosc 5/4735 Firebase.
Configuration Of A Pull Network.
Adding members to ArcGIS Online
Security Templates Lecture 7.
Tyler Technologies presents: What you need to know about upcoming changes to your New World ERP technical environment in Mike Adnson | Launch Manager,
Client/Server Computing and Web Technologies
Getting Started With LastPass Enterprise
Adding members to ArcGIS Online
Users and Administrators
OSL150 – Get Hands on with Ivanti Endpoint Security
Presentation transcript:

welcome to: Latinx Tech PDX agenda: October 25th 2017 6:15 - doors open 6:30 - member intros 6:40 - tech rise pdx 6:50 - intro to firebase 8:00 - Q&A

member intros What is your name? What technologies are you currently excited about? What attracted you to our Meet-up?

Tech Rise PDX Raquel Dorshkind http://www.techrisepdx.org/

fabio valentino @fabiovalentino_ Intro to Firebase auth & db

What is Firebase? real-time database user authentication serverless functions storage analytics performance tools test tools and more … It’s a set of cloud based products by google Firebase evolved from Envolve, a prior startup founded by James Tamplin and Andrew Lee in 2011. -wikipedia

We will look at Creating the Firebase project online Reading data real-time with on vs once writing, updating, deleting data Authentication (user sign-up, login, via email, google, FB) Firebase read/write rules (public, private, semi-private) Firebase server-less functions Additional resources Q & A We will use a create-react-app project to walk through the code and view results

Firebase database

Creating and Connecting a Firebase project to our Web project Go to firebase.google.com to create a project and copy the Web/JS configuration json Add the firebase dependency to the JS project: npm -install firebase —save Create a firebaseUtils.js file and set the contents of the JSON object into a firebaseConfiguration const In your firebase rules json replace auth!=null with true

Reading from firebase Db Import your firebase object Read data by referencing the path to your data within firebase: In the web console, manually add a new item to the path you’re reading (ie members). Note the immediate update to your feed. Now change the membersRef.on to membersRef.once and note the immediate updates are no longer in effect.

Write, Update & Delete data to/from firebase db Write new data to a path in your firebase db using .set() Update existing data in your path using .set() Delete an item via its Reference using .remove()

Firebase authentication

User sign-up & login via Email & Password firebase Auth Use firebase.auth() to create a user w/ email & password User login with email & password, then use: firebase.auth().currentUser to fetch the user object

NOTICE: the use of firebase.auth vs firebaseUtils.auth() Login using Google firebase Auth You must import the firebase object from the firebase library as well as your firebaseUtils object NOTICE: the use of firebaseUtils for my import vs the real firebase from ‘firebase’ Enable Google Authentication on your firebase project Setup a provider object from firebase.auth.GoogleAuthProvider() and call the signInWithPopup from your object’s auth() NOTICE: the use of firebase.auth vs firebaseUtils.auth()

Firebase rules

A look at firebase Rules and the simulator By default firebase secures access to the database. Allowing only logged in users to read/write. firebase Rules is a JSON object that uses cascading permissions in order to allow location (ie path) specific access (read / write). Use a $<variable> to match an element’s key, and auth.uid to match the user’s uid attempting the operation vs secure not secure

Detailed permissions firebase Rules Using .child(), .hasChild(), .val() we can accomplish some more detailed permissions data refers to existing data already in the path you’re at. newData refers to incoming data. (ie. data you’re trying to write) Get comfortable using the Rules Simulator

Firebase server functions

Server Functions via Firebase CLI tool Install firebase cli by running this command on your terminal: npm install -g firebase-tools Then run firebase login Change into the directory for your server function code and then run firebase init Select Functions option, and select your project by name Press Y to install dependencies and open the /functions/index.js file Uncomment the helloWorld function and run: firebase deploy

What we covered today what is firebase connecting to your web project real-time database user authentication serverless functions

Great Resources firebase YouTube channel: https://www.youtube.com/channel/UCP4bf6IHJJQehibu6ai__cg firebase Rules: https://www.youtube.com/watch?v=PUBnlbjZFAI firebase Server Functions: https://www.youtube.com/watch?v=EvV9Vk9iOCQ Contraindications - Firebase is excellent for prototyping and even many production scenarios, but it’s also not the best for certain security or business reasons . I recommend you put your server logic in a `utils` file or module, in order to minimize any future refactoring efforts. https://crisp.chat/blog/why-you-should-never-use-firebase-realtime-database

Firebase Q&A thank you! -fabio valentino