Giter Site home page Giter Site logo

divi's Introduction

Testnet

Etherscan

Contract address: 0x7cb309BCC3f3D1C66C6f6136D85f4C33032Df2F9

Firebase

Replace the environment variables from .env

bucket temporary rules

rules_version = '2';
service firebase.storage {
  match /b/{bucket}/o {
    match /{allPaths=**} {
      allow read, write: if true;
    }
  }
}

database temporary rules

rules_version = '2';
service cloud.firestore {
  match /databases/{database}/documents {
    match /{document=**} {
      allow read, write;
    }
  }
}

Firebase router

You need to make sure the rewrites are enabled in your Firebase hosting configuration to redirect all requests to your index.html file. This assumes you are using create-react-app:

{
  "hosting": {
    "public": "build",
    "ignore": [
      "firebase.json",
      "**/.*",
      "**/node_modules/**"
    ],
    "rewrites": [
      {
        "source": "**",
        "destination": "/index.html"
      }
    ],
    "headers": [
      {"source": "/service-worker.js", "headers": [{"key": "Cache-Control", "value": "no-cache"}]}
    ]
  }
}

divi's People

Contributors

bragars avatar terkea avatar nicklinck avatar

Watchers

 avatar  avatar

divi's Issues

Connect meta data of properties to IPFS

Motivation:
We cannot store images on chain, and we do not need to store information like location and # of beds on chain. We just need to store ownership and price on chain.

Thus, we must store this meta data somewhere. Using IPFS is great because it is a decentralized file store. https://www.pinata.cloud/ might help in this process.

I am open to alternative data stores if someone has a better idea!

User sign in functionality

Allow users to sign in with meta mask and unstoppable domains.
(break this into two issues if desired)

Expose APIs for minting and accessing an NFT

expose an API that the front end developer can access

Parameters for minting the NFT should include:

  • number of "shares" of the NFT (default to 365)
  • sale price of entire property
  • [not stored on chain] files (such as pdf, jpeg, etc. for the title, deed, and photos of the house)
  • [not stored on chain] property details (# of beds, # of baths, sq ft, location, ... )
  • ...

The NFT can be queried and expose the following information in addition to the information above:

  • price per share
  • available shares
  • creator of NFT
  • current NFT holders
  • ...

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.