Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

express-firebase

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-firebase

It helps to manage your firebase api without worry to much of the code

  • 1.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

Express Firebase

A very good helper library for connecting react js applications to firebase. It is basically wrapper of all firebase functions

Installation

yarn add express-firebase

or

npm install --save express-firebase

Usage

import expressFirebase from 'express-firebase';

const firebaseConfig = {
  apiKey: 'xxxxxxxxxxxxxxxxx',
  authDomain: 'xxxxxxxxxxxxxxxxx',
  databaseURL: 'xxxxxxxxxxxxxxxxx',
  projectId: 'xxxxxxxxxxxxxxxxx',
  storageBucket: 'xxxxxxxxxxxxxxxxx',
  messagingSenderId: 'xxxxxxxxxxxxxxxxx',
  appId: 'xxxxxxxxxxxxxxxxx',
};

expressFirebase.connect(firebaseConfig);

Add Data

await expressFirebase.post('/add',
{name:'I love express firebase',version:'1.0.0'});

Get Data

const response = await expressFirebase.get('/add');

Update

await expressFirebase.put('/add',
{name:'I Love Express Firebase Updated',version:'1.0.1'});

Delete

await expressFirebase.delete('/add','xxxxxxxxxxxxxxx');

Upload Image

const imageUrl = await expressFirebase.uploadFile('imageName','image data');

Login

const response = await expressFirebase.login('abc@gmail.com','password');

Signup

const signup = await expressFirebase.signup('abc@gmail.com','password');

Logout

const response = await expressFirebase.logout();

Get Current User

const response = await expressFirebase.getCurrentUser();

isLoggedIn

const response = await expressFirebase.isLoggedIn();

Email Verification

const response = await expressFirebase.sendEmailVerification();

OAuth - Google

const response = await expressFirebase.loginWithGoogle();

OAuth - Github

const response = await expressFirebase.loginWithGithub();

Keywords

FAQs

Package last updated on 05 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc