About the project
Description
A secure and scalable RESTful API for an anonymous messaging platform, inspired by apps like Sarahah. The platform enables users to register, generate unique profile links, and receive anonymous feedback securely. The backend is built with robust authentication, role-based authorization, data validation, and custom error handling to ensure data privacy and system stability.
Notes
- Implemented a centralized custom error-handling middleware.
- Secured routes and protected user data using JWT-based middleware.
- Applied Mongoose pre-save hooks for automated password hashing.
- Ensured high performance by preventing unnecessary database queries through early request validation.
Tech Stack
Node.jsExpress.jsMongoDBMongooseZodbcryptjsJWT