Giter Site home page Giter Site logo

hungry-hub-server's Introduction

Hungry Hub Server

Click here to see deployed application

Description

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.

MVP

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.

Backlog

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

Data Structure

The provided schemas outline the models for the data structure of the application:

  1. Address Schema:

Stores user addresses. Fields include userId, label, street, number, city, zipCode, and otherInformation.

  1. Cart Schema:

Manages user carts and orders. Fields include userId, restaurantId, orderItemDetailsId, driverId, createdOn, notificationIds, totalPrice, updatedOn, and orderStatus.

  1. User Schema:

Represents user information. Fields include fullName, email, phoneNumber, dateOfBirth, password, createdOn, updatedOn, roleId, and isActive.

  1. Review Schema:

Contains user reviews for restaurants. Fields include restaurantId, userId, rating, comment, and createdOn.

  1. 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.

  1. OrderItemDetails Schema:

Manages details of items in orders. Fields include orderId, menuItemId, and quantity.

  1. Notification Schema:

Stores notifications for users. Fields include cartId, userId, message, and createdOn.

  1. 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.

Tasks

Priority-wise list of tasks:

  1. Implement user authentication
  2. Create User model and endpoints
  3. Create Order model and endpoints
  4. Create Restaurant model and endpoints
  5. Create Menu model and endpoints
  6. Create Cart model and endpoints
  7. Create Address model and endpoints
  8. Create Notification model and endpoints

Links

hungry-hub-server's People

Contributors

samanta-scavassa avatar juanisolis1111 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.