Skip to content

Quick launch for a Node HTTP API on Firebase Functions

Notifications You must be signed in to change notification settings

0xc00010ff/launch-firebase-api

Repository files navigation

last-api-firebase

Installation

First, create a project on Firebase

Install Firebase tools

Connect to your Firebase

Run locally

  • Note that the root folder is the project container, and the actual Node app is inside of functions/.
  • Meaning that you'll do git in one terminal tab at the root folder, and use another tab at /functions for running the API
cd functions
npm install
npm run dev

Deployment

Once you've connected your Firebase account,

cd functions
npm install
npm run deploy

Will deploy to Firebase


Example Routes

Note: POST params expect a JSON body

POST /widgets - Create a widget.

  • title: (optional) widget title
  • description: (optional) widget description

GET /widgets/:widgetId - Read an widget. Response contains all the resources and their fields.


VSCode super productivity setup:

About

Quick launch for a Node HTTP API on Firebase Functions

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published