Skip to content

Stake based Booking is a dApp which is one of solution for reducing the problem of "food loss" and "food waste"

Notifications You must be signed in to change notification settings

masaun/stake-based-booking

Repository files navigation

Stake based Booking (for local restaurants)


【Introduction of Stake based Booking】

  • Stake based Booking is a dApp which is one of solution for reducing the problem of "food loss" and "food waste".
    • That is related to SDG#2 (End Hunger) and SDG#12 (Ensure sustainable consumption and production patterns)

 

【Work flow of Stake based Booking】

  1. Local restaurants register with their wallet address and local organization (and local organization's wallet address) which they want to support. (i.e. Local organization are NGO/NPO, etc... which based on local area)

  1. Customers books date and stake amount which is equal to amount of course meal they will eat at the booked day. (Customers also register their wallet address when they book)

  1. At the booked day,
  • In case of customers who didn't come to restaurants even though they booked, staked amount is not refund.
  • There are three type recipents below who can get amount which divide total staked amount by total number of booked customers plus restaurants plus local organization.
    • Customers who came to restaurants as they booked
    • Local restaurants which was booked
    • Local organization which was specified by restaurants in advance

 

【Deep dive into Stake based Booking】

1) Project Title

  • Stake based Booking (for local restaurants)

 

2) Problem/Opportunity

  • Problem
    • In 2011, FAO(Food and Agriculture Organization of the United Nations) presented the estimate that around 1/3 of the world’s food was lost or wasted every year.
    • One of reason of food loss and food waste is that customer cancel booking at the day in restaurants. (Because restaurants need to prepare many ingredients according to booking by customers. If restaurants is canceled booking at the day of booking by customers, many ingredients are trashed and wasted)

  • Opportunity

 

3) Value Proposition

  • Aspect of local restaurants
    • Local restaurants can reduce ingredients loss by cancelling booking.
    • Local restaurants can reduce profit loss by customers has commitment which is generated by staking when customers booked.

  • Aspect of customers
    • Customers get opportunities which is not only can eat delicious meal, but also can get money as reward from tatal staked money if they come to restaurants as they booked.

  • Aspect of local organizations
    • In case local organizations are specified by local restaurants, local organizations can get opportunity to get money from tatal staked money.

  • Aspect of SDGs
    • If local restaurants success to reduce ingredients loss by cancelling booking, that case contribute to solve SDG#2 (End Hunger) and SDG#12 (Ensure sustainable consumption and production patterns)

 

4) Underlying Magic

 


【Setup】

Setup wallet by using Metamask

  1. Add MetaMask to browser (Chrome or FireFox or Opera or Brave)
    https://metamask.io/

  2. Adjust appropriate newwork below

Ropsten Test Network

 

Setup backend

  1. Deploy contracts to Ropsten Test Network
(root directory)

$ npm run migrate:Ropsten

 

Setup frontend

  1. Execute command below in root directory.
$ npm run client
  1. Access to browser by using link
http://127.0.0.1:3000/stake-based-booking

 


【References】


About

Stake based Booking is a dApp which is one of solution for reducing the problem of "food loss" and "food waste"

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published