Skip to content

Coffeechain, connecting specialty coffee producers and coffee shops in a decentralized app

Notifications You must be signed in to change notification settings

adriapalleja/coffeechain-frontend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Coffee Chain

logo

The idea

Connecting specialty coffee producers and coffee shops in a decentralized app

Motivation

To create a decentralised market place for coffee by providing a trustless system via blockchain. To connect coffee shop owners and coffee producers all around the world. To remove intermediaries between them and support fair trade. To learn blockchain, to code, to have fun.

Tech Stack

Frontend

  • React - frontend framework
  • Redux - predictable state container for JavaScript apps
  • Emotion - CSS-in-JS library
  • Stripe - online payment system
  • EOS - blockchain infrastructure for decentralised apps

Backend

  • Koa - web framework for node.js
  • MySQL - relational database
  • Sequelize - promise-based ORM for Node.js
  • Redis - in-memory data structure store, used as a database, cache and message broker
  • Demux - state and side effect handling for blockchain applications
  • Stripe - online payment system
  • EOS - blockchain infrastructure for decentralised apps

Screenshots & features

Landing page

All available coffees

Coffee-detail page

Details of a particular coffee offer

Order

Payment

My orders

Add coffee offer

Add/update profile

Getting Started

Prerequisites

  • Node
  • Npm

Set up the server and blockchain

Coffee Chain backend

Set up the client

  1. Clone the repo
$ git clone https://github.com/chinins/coffee-chain-frontend.git
$ cd coffee-chain-frontend
  1. Install dependencies
$ npm install
  1. Install and run IPFS daemon
$ npm install -g go-ipfs
$ ipfs daemon

To allow cross-origin for IPFS

$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Origin "[\"*\"]"
$ ipfs config --json API.HTTPHeaders.Access-Control-Allow-Credentials "[\"true\"]"
  1. Run it
$ npm start

Authors

Contributing

Contributions Welcome! This is an on-going project and external input and ideas will be gladly recieved!

License

This project is licensed under the MIT License, take it, have fun.

About

Coffeechain, connecting specialty coffee producers and coffee shops in a decentralized app

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 95.2%
  • HTML 2.5%
  • CSS 2.3%