Skip to content

Your Unstoppable Decentralized Shopping Destination πŸ›οΈπŸ›’

License

Notifications You must be signed in to change notification settings

decentramall/decentramall-ui

Repository files navigation

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