Click here to see deployed application
Hungry Hub Server is a backend application built with Node.js and Express.js, utilizing a MongoDB database. It serves as the backend for the Hungry Hub project, providing essential functionalities for food delivery.
The Minimum Viable Product (MVP) for Hungry Hub Server includes:
- User authentication (signup/login)
- Add addresses for users
- Update user information
- Browse restaurants and menus
- Filter restaurants by rating and categories
- Add items to cart
- Checkout process
The primary focus was to implement the food delivery flow for users.
In the backlog, the following features are planned:
- Add reviews for restaurants
- Create a favorite restaurants list
- Implement filtering restaurants by location
- Integrate a payment process
- Develop order tracking functionality
- Provide an order history for users
The provided schemas outline the models for the data structure of the application:
- Address Schema:
Stores user addresses. Fields include userId, label, street, number, city, zipCode, and otherInformation.
- Cart Schema:
Manages user carts and orders. Fields include userId, restaurantId, orderItemDetailsId, driverId, createdOn, notificationIds, totalPrice, updatedOn, and orderStatus.
- User Schema:
Represents user information. Fields include fullName, email, phoneNumber, dateOfBirth, password, createdOn, updatedOn, roleId, and isActive.
- Review Schema:
Contains user reviews for restaurants. Fields include restaurantId, userId, rating, comment, and createdOn.
- Restaurant Schema:
Stores information about restaurants. Fields include name, addressId, email, phoneNumber, category, description, image, longitude, latitude, userId, createdOn, updatedOn, operatingHours, rating, reviewsId, and isActive.
- OrderItemDetails Schema:
Manages details of items in orders. Fields include orderId, menuItemId, and quantity.
- Notification Schema:
Stores notifications for users. Fields include cartId, userId, message, and createdOn.
- Menu Schema:
Contains menu items for restaurants. Fields include itemName, category, price, description, image, restaurantId, and ingredients.
These schemas define the structure of the MongoDB documents for respective entities in the application.
Priority-wise list of tasks:
- Implement user authentication
- Create User model and endpoints
- Create Order model and endpoints
- Create Restaurant model and endpoints
- Create Menu model and endpoints
- Create Cart model and endpoints
- Create Address model and endpoints
- Create Notification model and endpoints