GithubHelp home page GithubHelp logo

anandmohan23 / blockchain-real-estate-v1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kopylash/blockchain-real-estate-v1

0.0 0.0 0.0 387 KB

Hybrid real-estate app with blockchain and Ethereum smart contracts

License: MIT License

JavaScript 100.00%

blockchain-real-estate-v1's Introduction

Blockchain real-estate app

Proof of concept of a hybrid real-estate app with blockchain and Ethereum smart contracts.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

You need Node.js >= 8.0.0.

Install Truffle

npm install -g truffle

Install Ganache or ganache-cli to run local Ethereum blockchain.

npm install -g ganache-cli

Installing

Clone the repo

git clone https://github.com/kopylash/blockchain-real-estate-v1.git

Install dependencies

npm install

Database

We use Sequelize for database manipulation. Project is preconfigured to use PostgreSQL. To connect to the database setup environmental variable DATABASE_URL in format:

DATABASE_URL = "postgres://<user>:<password>@<host>:<port>/<database_name>"

IMPORTANT: Postgres should have POSTGIS extension installed. And you should enable it in your database by running:

CREATE EXTENSION POSTGIS;

Database is automatically synchronized with Models definition.

Run

Before starting the app start local ethereum blockchain with Ganache. For this either open Ganache app or run:

npm run start:eth

NOTE: we use next mnemonic for development purposes, some configs are predefined.

candy maple cake sugar pudding cream honey rich smooth crumble sweet treat

Compile smart contracts.

cd ethereum/
truffle compile

Deploy the contracts onto your network of choice (default "development"). Check Truffle docs for details.

truffle migrate

Then run server with

npm start

API

The complete API reference is published to Postman. You can import it and use for testing.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

blockchain-real-estate-v1's People

Contributors

vindrek avatar kopylash avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.