项目作者: skfarhat

项目描述 :
Airbnb on Ethereum
高级语言: JavaScript
项目地址: git://github.com/skfarhat/ethbnb.git
创建时间: 2018-06-27T18:53:50Z
项目社区:https://github.com/skfarhat/ethbnb

开源协议:

下载


Ethbnb 🏡⛓

Ethbnb is an Airbnb-like decentralised application (DApp) that runs on the Ethereum blockchain.

Its smart-contract is written in Solidity and the application frontend component in JavaScript.
A backend component written in NodeJS is leveraged to support search and filter operations for listings.

GitHub Logo

Installation

Clone project and install dependencies

  1. git clone https://github.com/skfarhat/ethbnb && cd ethbnb
  2. scripts/install-dependencies.sh

Set up Metamask on your browser

Running

Three terminals are needed to run Ethbnb in a dev environment

  1. # Terminal 1: Set up local blockchain
  2. ganache-cli
  3. # Terminal 2: Deploying smart-contract and running backend
  4. # (a) to initialise the system with data
  5. node start <proj_root>/backend/src/server.js --initTestData=true
  6. # Or (b) start fresh
  7. # node start <proj_root>/backend/src/server.js
  8. # Terminal 3: Run client frontend
  9. npm start --prefix <proj_root>/frontend
  10. # Visit http://localhost:3000/ on your browser
  11. # ...

Test smart-contract

  1. # 1. Ensure ganache-cli is running
  2. ganache-cli
  3. # 2. Start tests
  4. <proj_root>/scripts/truffle-test.sh