Skip to content
/ fello Public

Larger Demo Project for Serverless coding with Firebase

License

Notifications You must be signed in to change notification settings

jerryjj/fello

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fello - Firebase Social Messaging

This is an example project to demonstrate serverless coding with Firebase. Demo: https://fello.backender.io/

I'll upload slides with notes a bit later.

How to use this repository

This repository has been split into different feature branches.

  1. master: Starting point for Firebase Hosting
  2. step_two: Authentication
  3. step_three: Realtime Database
  4. step_four: Firebase Storage
  5. step_five: Simple relations in Realtime Database
  6. step_six: Cloud Messaging

You can checkout any of the branches at any time and just read the STEP_INFO.md for information regarding that step (deployment info, changes, etc).

Even though this example is Serverless, you need Node.JS installed for development.

I built this demo to showcase on different Firebase features in different meetups, etc.

NOTE! Pay no attention to the UI code ;) I could have used a UI Framework like (Angular, React, etc), but desided to just hack something together quickly so it doesn't hide the base logic of the functionality I wanted to show.

Local development

    1. Clone the repo
  • 1.1. Switch to the branch you want to test out (read the STEP_INFO.md)
    1. Install dependencies
npm install && bower install
    1. Insert your Firebase Database credentials here (in this README):
FIREBASE_PROJECT_ID: MY-PROJECT-ID
FIREBASE_API_KEY: MY-API-KEY

Or you can also export them as environment variables

export FIREBASE_PROJECT_ID=MY-PROJECT-ID
export FIREBASE_API_KEY=MY-API-KEY
    1. Run the dev server with livereload
npm run dev

Deployment

Requirements:

  • Firebase CLI tool (npm install -g firebase-tools)

To deploy this under your own Firebase project, create .firebaserc -file in the project directory with following content:

{
  "projects": {
    "default": "YOUR_PROJECT_ID"
  }
}

Then build the assets and deploy to hosting:

npm run deploy

License: MIT

About

Larger Demo Project for Serverless coding with Firebase

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published