Skip to content

Latest commit

 

History

History
71 lines (43 loc) · 1.99 KB

README.md

File metadata and controls

71 lines (43 loc) · 1.99 KB

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: