Skip to content

Latest commit

 

History

History
57 lines (44 loc) · 1.61 KB

README.md

File metadata and controls

57 lines (44 loc) · 1.61 KB

Table of Contents

Setup

  • Create firebaseConfig.json in root directory (service root).
  • Generate a new key for Firebase admin-sdk from here.
  • Copy what's inside to firebaseConfig.json.
  • It should look like this :
 "type": "service_account",
 "project_id": "",
 "private_key_id": "",
 "private_key": "",
 "client_email": "",
 "client_id": "",
 "auth_uri": "",
 "token_uri": "",
 "auth_provider_x509_cert_url": "",
 "client_x509_cert_url": ""
}
# Install dependencies
$ npm install

# To deploy 
$ serverless deploy

# To test in your local env
$ serverless offline

Environment Variables

Using Firebase Realtime DB.

DATABASE_URL=XXX
SLS_DEBUG=*

Docs

Endpoints

USER BOARD LIST TASK
POST /user PUT, POST /board PUT, POST /list POST /task
GET /user PUT /board/invite PUT /list/rename PUT /task-reorder
PUT, POST /user/boards POST /board/users PUT /list/remove PUT /task-switch
PUT /task-update