The NutriChef backend is a RESTful API built using Node.js and Express.js. It provides endpoints for user authentication, recipe management, and other core functionalities. The backend uses MongoDB as its database, with Mongoose for data modeling. Authentication is handled via JWT tokens stored in HTTP-only cookies, ensuring secure user sessions.
✔️ User authentication (JWT-based)
✔️ Recipe creation, updating, and deletion
✔️ Recipe exploration with search functionality
✔️ Image upload support using Multer
✔️ Secure API routes with authentication middleware
- Node.js – JavaScript runtime
- Express.js – Web framework
- MongoDB – NoSQL database
- Mongoose – ODM for MongoDB
- JSON Web Tokens (JWT) – Authentication
- Multer – File uploads
- Bcrypt – Password hashing
- Cors – Handling cross-origin requests