Skip to content

Structure

David Park edited this page Oct 19, 2023 · 2 revisions

Structure

Frontend

  • All the files for frontend work are in frontend/src.
  • frontend/src/component contains all the React components for frontend pages.
  • frontend/src/api/ contains all api files which are used for communication between frontend and backend.

Backend

Three main folders for backend include:

  1. Models in backend/models
  2. Routes in backend/routes
  3. Services in backend/services

Flow of Data

  • In order for frontend pages to communicate with backend (such as database), the flow of data is router -> handler -> actual functions (business logic)
  • For example, in order to update a Stakeholder model, the data flow would be:
    • Call changeStackholder function in stakeholderAPI, which is in frontend/api

Models

Routes

Services

Clone this wiki locally