-
Notifications
You must be signed in to change notification settings - Fork 0
Backend Folder Structure
income-schema.js, cost-schema.js, user-schema.js
Contains schemas for data that is stored in the database.
income-router.js, user-router.js, chat-router.js
Routes define the relationship between the URLs (or endpoints) of your web application and the corresponding controllers that handle the requests. In other words, routes map URLs to specific controller functions.
user-controller.js, cost-controller.js, income-controller.js, chat-controller.js
The controller is responsible for handling the logic behind user inputs and actions. It acts as an intermediary between the data (model) and the presentation (view). In a web application, the controller receives the HTTP request, processes it, interacts with the data layer (e.g., querying the database), and sends an appropriate HTTP response back to the client.
/api/plaid, /api/chatbot, etc.
Contains files that interact with external apis and supplementary files needed to parse data and test.
Contains all middleware functions - functions that get executed when a request is sent, and a response given. Will have access to the request object ( req ), the response object ( res ), and the next function in the application's request-response cycle. All error handlers, validators, and authenticators will reside here.
Contains drivers, database connection, and environment files
Contains utility functions and additional files that we need.