You're viewing the legacy docs. They are deprecated as of May 18, 2016.
These docs are for version 2.4.2 and below of the Javascript SDK. Go to our current docs, or see our Web migration guide.

JavaScript Web Guide

Deploying Your App

Your awesome Firebase app is almost ready to go into production! Before you put it out into the world, there are four important things you need to do:

Secure Your App

Using our flexible Security and Firebase Rules language, you can easily define which users have read and write access to different parts of your app’s data. You can edit and test your rules directly in your App Dashboard by clicking on the Security & Rules tab. If you haven't added rules yet, watch the screencast and check out the Security section of the guide to get started.

Without Security and Firebase Rules, your Firebase app is globally writable and readable through the API.

Hosting Your Website

There are a few options for deploying your Firebase app:

  • Our hosting service, Firebase Hosting, lets you deploy static assets (HTML, CSS, JS, images, etc.) to your own domain. It's CDN-backed and served over a secure SSL connection. Check out our Hosting Quickstart Guide to get started.
  • If your Firebase app has server-side scripts, there are a variety of third-party hosting services you can use.

Whitelist Your Domain for Authentication

If you're using any authentication methods other than custom tokens in your app, make sure to whitelist your domain so that it can make login requests. All Firebase apps have localhost and 127.0.0.1 enabled by default. To add your domain, navigate to the Login & Auth tab on your App Dashboard and add your domain under Authorized Request Origins.

Upgrade Your Firebase Plan

Our Free Plan allows up to 100 concurrent connections, or simultaneous users on your application. If 100 users are currently connected and a 101st user attempts to connect to your app, the API will throw an error and any additional connections will fail. All of our paid plans have no hard caps on usage and are recommended for production apps.

  1. 1

    Next

    Installation & Setup

  2. 2

    Next

    Understanding Data

  3. 3

    Next

    Saving Data

  4. 4

    Next

    Retrieving Data

  5. 5

    Next

    Structuring Data

  6. 6

    Next

    Understanding Security

  7. 7

    Next

    User Authentication

  8. 8

    Next

    Offline Capabilities

  9. 9

    Next

    Deploying Your App