Eat-bit

No man in the middle attack to your food

Introduction

EatBit is a blockchain based decentralised application that allows users to order food items.

Inspiration

We used to order our favorite dishes from a particular restaurant through a food delivery service, and we had become addicted to it, since there were no delivery charges, we found it amazing that we could get food delivered to our doorstep without having to pay anything extra for the service. Once, we happened to be present at the restaurant’s location and were shocked to realize that the food delivery service was charging us a premium without even telling us about it.

The prices of items on the restaurant's menu were much lower than what was there on the delivery app. This inspired us to develop a completely decentralized platform where restaurant owners can come up and list their menus. Customers can come up and order food from their favorite restaurants, all this without any third party involved in between.

What it does

EatBit enables you to order food from restaurants/eateries in your area directly by paying the restaurants. There is no middleman involved in this process.

flowchart

  • The restaurants come to the application and register themselves with their name and other details.
  • Restaurants can add their menu items, prices ,images and description.
  • The customers can browse through the menu and add their favorite items to the cart.
  • The customers pays the restaurants directly for the food they order with cryptocurrency.
  • The restaurants can view the orders placed by the customers and accept or reject them.
  • If the restaurant accepts the order, the order is confirmed and the customer receives a notification.
  • Else, if the order is cancelled customer is provided with an instant refund from the smart contract.
  • The food is thenn prepared and delivered to the customer.
  • At the time of delivery, the customer has to accept the order completion in the application with same account he used to place the order.
  • Moreover, if the order is not completed within the stipulated time, a Chainlink automation runs at 2am daily to refund the customers from the smart contract that ordered food the day earlier but did not got fulfilled.

Accomplishments that we're proud of

We are proud of the fact that we were able to create a decentralized application in such a short span of time. We are also proud of the fact that we were able to create a platform where the restaurants can list their menus and the customers can order food directly from the restaurants without any third party involved in between.

What's next for EatBit

We are planning to add to add delivery partners in the process so that it becomes a seamless experience for user . The user can order food from the restaurant and the delivery partner can deliver the food to the user. The user can pay the delivery partner directly in crypto currency. The delivery partner can also list his services on the platform and the user can choose the delivery partner of his choice. The delivery partner can also get paid in crypto currency.

Challenges we ran into

Since the project involves transactions, we had to make sure that the contract was full proof and there are no clear vulnerabilities that can be exploited while making transactions. Also, we had to imagine various scenarios of cheating or fraud which are possible both by the customers and the restaurants, to eliminate those, we had to implement the model in a way that the funds after making an order would be there in the contract and would only be transferred to the restaurant once the customer marks the order as complete. This would also safeguard the restaurants against the issue of fake orders.

Accomplishments that we're proud of

We are proud of the fact that we were able to create a decentralized application in such a short span of time. We are also proud of the fact that we were able to create a platform which empowers all the small restaurant owners, they can list themselves and get them discovered by customers on a platform that isn’t centralised, and as a result doesn’t list the restaurant that pay them on the top, and provides equal opportunity to each restaurant to get discovered.

What we learned

We were quite new to blockchain and web3 application development. But we knew the working of blockchain and then once we had the idea, we began development with a learning by doing approach. We learnt about smart contract development in solidity, deploying smart contracts and also linking it with the frontend of the app using a library like web3.js or ethers.

What's next for EatBit

We plan to add a rating system for the restaurants, if the customer is not satisfied with the quality of food, they can add a review under the rating and reviews section associated with each restaurant. Also, since the platform is completely decentralised, organising a delivery service by the platform is not feasible. A lot of restaurants have their in-house delivery service which they use to serve the orders they receive via phone calls or text from their locality, those restaurants can make deliveries on their own. For the ones that don’t have one such service, for them we plan to also open the platform to various short-distance delivery services available in their respective area. These service providers can just list themselves on Eatbit and once a customer checks out from their cart with a restaurant that does not have a delivery service, they can choose any one of these services based on pricing and rating, and they’d deliver the food.

Built With

Share this project:

Updates