... | ... | @@ -19,12 +19,13 @@ The mobile app communicates with the backend over HTTPS, using JSON formatted da |
|
|
The backend is built with Node.js and Express, exposing a set of REST API endpoints for core functionalities:
|
|
|
- /users: Handles user registration, login, and password reset
|
|
|
- /group: Manages group creation, joining, leaving, and ownership transfer
|
|
|
- /items: Supports adding, updating, and deleting inventory items
|
|
|
These endpoints follow RESTful principles to ensure modularity and ease of integration. Beyond routing, the backend also implements essential business logic such as:
|
|
|
- /items: Supports adding, updating, and deleting inventory items
|
|
|
These endpoints follow RESTful principles to ensure modularity and ease of integration.
|
|
|
Beyond routing, the backend also implements essential business logic such as:
|
|
|
- Email based password verification using Nodemailer
|
|
|
- Intelligent recipe requests to an external AI service
|
|
|
- Calorie and BMI computations for personalized health tracking
|
|
|
-
|
|
|
- Calorie and BMI computations for personalized health tracking
|
|
|
|
|
|
**Data Layer (Database – MongoDB via Mongoose)**
|
|
|
Persistent data storage is handled by MongoDB, with Mongoose used for schema validation and object modeling.
|
|
|
The database structure supports the following collections:
|
... | ... | |