Skip to content

DipanshKhandelwal/final-project-DipanshKhandelwal

 
 

Repository files navigation

Coffee House

Go on and ahve some decentralized coffee !!

Abstract

Coffee House is place where you can have and store your snaks and drinks.

Buy it once !! Use it anytime !! It never ends !!

External Contracts Used

  • OpenZeppelin SafeMath
  • OpenZeppelin Ownable

Development

Prerequisites

This is my setup while developing this.

  • OS: Ubuntu 18.04
  • Node.js: 8.14.0
  • npm: 6.5.0
  • truffle: v5.0.2
  • Ganache CLI: v6.2.5

Setup local development instance

  • Clone the project locally
git clone https://github.com/dev-bootcamp-2019/final-project-dipanshkhandelwal
cd final-project-dipanshkhandelwal
  • Start local development blockchain and copy the mnemonic to be used later
ganache-cli -b 3
  • Compile contracts and migrate them to the blockchain
npm i
truffle compile
truffle migrate

Setup the frontend

The frontend is a React app that uses drizzle to interact with the contract.

cd client
npm i
npm start

Run Tests

truffle test

Initial setup

  • Goto localhost:3000 and login into metamask using the mnemonic obtained from ganache.
  • Allow connecting the app to web3
  • Owner's account will be already created and will be the one who initiated the contract.
  • You can then switch to a different metamask account and register/buy etc.

Future work

  • Better handling for users data
  • Two sided store
  • A more friendly page link
  • Integrate drizzle-react
  • Improve UI/UX

Screenshots

Icons made by Freepik from www.flaticon.com is licensed by CC 3.0 BY

Author

Dipansh Khandelwal

About

final-project-DipanshKhandelwal created by GitHub Classroom

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 90.9%
  • HTML 5.9%
  • CSS 3.2%