Giter Club home page Giter Club logo

decentramall-ui's Introduction

Your Unstoppable Decentralized Shopping Destination

Decentramall is a virtual shopping platform built on Ethereum. Brands and retailers can purchase or rent their storefronts where shoppers can discover and purchase both virtual and physical products.

This is a work in progress (see warnings below), started during HackFS.

๐Ÿ‘จโ€๐Ÿญ Installation

yarn

๐Ÿคนโ€โ™‚๏ธ Usage

Requires .env.local, deployed smart-contracts and powergate instance.

To fill .env.local look at .env.local.example (parameters are explained below).

To deploy the smart-contracts in a localnet, see contracts repository.

To start a local powergate, see here. Everytime you start a the local testnet, it starts with clean spaces, so you need to create an FFS. Run pow ffs create (see here how to install pow cli) anywhere on your machine and copy the token to .env.local file to NEXT_PUBLIC_FFS_TOKEN variable.

yarn dev

See here how to import accounts into metamask and here how to reset if necessary.

๐Ÿ•ต๏ธโ€โ™€๏ธ Tests

yarn test

๐Ÿ‘ทโ€โ™€๏ธ Build

Build static assets in out/ directory to serve

It's possible to declare a base url, useful when creating a build for IPFS environments

BASE_URL=some/base/url yarn build

๐Ÿ“ญ Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

โณ Work in Progress

  • Initial version of smart contracts
  • Initial version of webui
  • User Dashboard
  • Buy SPACE
  • Rent SPACE
  • Load add SPACE tokens
  • Get user SPACE status (price when bought, rent (if any))
  • Get user rent status (price, expiration, etc)
  • Load all rents
  • Render spaces on mainpage
  • Search mechanism
  • Deploy to testnet
  • ...

โš ๏ธ Warnings!

NOTE: This are warnings from the textile team, that we also want to share.

  1. This is an experimental service, running on an experimental stack, connected to the Filecoin Testnet.
  2. Things may go wrong, things may change without much notice, and your data may go away! Before mainnet, all of this is meant to explore, have fun, and learn.
  3. We cannot offer support for lost data. In fact, you should expect all data to be reset at some points between now and the end of HackFS.
  4. Again, don't put production things on this service.
  5. Don't put important things on this service.
  6. Don't put private or potentially insecure things on this service.
  7. Don't put things you shouldn't on this service (harmful, mean, illegal, private, not yours).

License

GPL-v3

decentramall-ui's People

Contributors

conradob avatar easonchai avatar obernardovieira avatar raphaelpg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

decentramall-ui's Issues

refactor storage calls

Under /user, rent and space have many storage calls. Since we will use it in other parts of the projects, we must create a single file dealing with that.

Draft ERC20 Shopper Tokens, Marketplace & Governance Contract

Goal:

  • Issue a token per US$1 (or any other unit) worth of purchase
  • ERC20 token must serve as governance token
  • Marketplace contract handles purchasing of items (send ETH/DAI) and rewards shoppers
  • A governance contract (for governance functions)

Additional features are welcome

Learn about Filecoin

We will explore filecoin and see how it fits the purpose of the project. We might as well consider textile buckets and threadsdb.
Write feedback on comments

Draft SPACE token

We want each SPACE token to be unique. Its price must take a bonding curve evolution.
Let's see if we can use ERC721 or ERC1155 and draft some contract for this token.
Note X(to be decided) tokens will be minted at deploy time.

Generate slug from store name

It will be very important to be able to share a unique store with someone else. Generating a slug and saving it to filecoin with everything else, might be a reasonable solution. Then we use it in the URL to get the store information.

webui skeleton

Create the skeleton for webui. It would ideally work in IPFS. Lets see the best way to achieve that.
Consider this structure.

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.