Code Monkey home page Code Monkey logo

fireboot's Introduction

Introduction

This project provides an initial "seed" to build a web application. It includes packaged solutions for the following:

The codebase is mostly JavaScript. To get started, clone fireboot repository :

$ git clone https://github.com/bhirbec/fireboot.git
$ cd fireboot

Setup Firebase

Create Your Projects

Open the Firebase Console and create two projects (we will use fireboot as a generic project name):

  • fireboot-staging
  • fireboot-prod

You'll also need to install the Firebase CLI:

$ npm install -g firebase-tools

Sign in using your Google account:

$ firebase login

We've already initialized the directory with firebase init command so we can just set the active project:

$ firebase use firebase-staging

Optionally, you can set aliases by using firebase use --add command. We've added three aliases: default, staging and prod.

user@fireboot:~/fireboot$ firebase use staging
Now using alias staging (fireboot-staging)
user@fireboot:~/fireboot$ firebase use prod
Now using alias prod (fireboot-prod)
user@fireboot:~/fireboot$ firebase use default
Now using alias default (fireboot-staging)

Create Firebase configs

From the Firebase console copy/paste the Staging and Production configurations in the following files:

  • config/web.prod.json
  • config/web.staging.json

Expected format:

{
  "apiKey": "<your-key>",
  "authDomain": "<your-domain>",
  "databaseURL": "<your-db-url>",
  "projectId": "<your-project-id>",
  "storageBucket": "<your-bucket>",
  "messagingSenderId": "<your-sender-id>"
}

For more informations, please read ("Add Firebase to your JavaScript Project")[https://firebase.google.com/docs/web/setup] in Firebase documentation.

Deploy Static Web Site

Staging

$ sh ./deploy.sh

You'll be prompted to deploy on 'staging' or 'prod'.

fireboot's People

Contributors

bhirbec avatar dependabot[bot] avatar

Stargazers

 avatar Raghava Bada Chinnappa avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.