-
Notifications
You must be signed in to change notification settings - Fork 0
Structure
David Park edited this page Oct 19, 2023
·
2 revisions
- All the files for frontend work are in
frontend/src. -
frontend/src/componentcontains all the React components for frontend pages. -
frontend/src/api/contains all api files which are used for communication between frontend and backend.
Three main folders for backend include:
- Models in
backend/models - Routes in
backend/routes - Services in
backend/services
- 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
- Call changeStackholder function in stakeholderAPI, which is in
© 2023 University of Toronto, CSSE