Skip to content

Environment

Oliver Song edited this page Jun 26, 2019 · 4 revisions

Firebase

Project Structure

NOTE: It is important to understand that Firebase acts as the middleware between client side and server side communication.

If the client does something with Firebase (e.g., upload a file), Firebase is called from the client-side (Firebase Cloud Storage) and it is uploaded. Firebase Cloud Storage will then return a documentId, which is sent from client to the server. The server will then retrieve the document details (Firebase Admin) using the documentId, and store the information in the database (Firebase Firestore)

  • The only Firebase functions that should be run from the API are those from Firebase Admin SDK
  • All other Firebase methods should be run from client-side

VS code

Required extensions

  • tslint
  • GitLens
  • Path Intellisense

NPM

Required extensions (Install these globally)

  • tslint
  • nodemon

Just run this

npm i -g nodemon typescript tslint
Clone this wiki locally