MOBILE PROGRAMMING Firebase Meriska Defriani S Komp M
MOBILE PROGRAMMING Firebase Meriska Defriani, S. Komp, M. Kom Informatics Engineering High School of Technology Wastukancana Purwakarta
Firebase? Firebase is a platform that gives you several service options including: react-time database, authentication, cloud storage that can be used to interact with your application. In addition, Firebase offers dynamic links such as analystic, adwords, admobs, crash reporting, notifications, testing and so on. You can check all of these options in the Firebase console after you create a Firebase account.
• Create a Firebase account using your Google account: https: //firebase. google. com • After that you can click GET STARTED or GO TO CONSOLE, and you will be directed to the Firebase console, where you can configure Firebase.
• Click Add Project to create a new service that will be used later, then enter the requested information on the form provided (Read: fill in the project name and Country or Region) • After that you will be directed to the console dashboard that looks like this:
Create a Real-time Database
Configure Firebase and React Native Installing Firebase in React Native (expo CLI): npm install firebase --save
How to Connect Firebase and React Native Make new file named Reference. js then fill the page with source code bellow: import * as firebase from 'firebase'; const config = { api. Key: " ", auth. Domain: " ", database. URL: " ", project. Id: " ", storage. Bucket: " ", messaging. Sender. Id: " " }; firebase. initialize. App(config); const root. Ref = firebase. database(). ref(); export const data. Ref = root. Ref. child('user');
- Slides: 8