Skip to content

Backend Architecture

Thuy Pham edited this page Oct 9, 2023 · 4 revisions

Overview

The backend is a web app supported by Express in a Node.js runtime environment. Data storage for FAQs is supported by a Firebase database.

  • /firebase: firebase metadata
  • /src:
    • /data: JSON files with data that has been written to the database
    • /scripts: scripts to add new data from /data
    • /firebase-config: files that initialize the connection to the database
    • Other files: files that define the API
      • server.ts: starts a local development server and links built frontend file for deployment
      • app.ts: contains enpoints for getting data and posting to Firebase.
      • auth.ts: contains a function for authenticating users with their Cornell emails.
Clone this wiki locally