Code Monkey home page Code Monkey logo

creaton's Introduction

Creaton

Creaton is a decentralized content sharing platform. Powered by Ethereum, IPFS, Superfluid and Textile, Creaton allows a streaming based subscription system where subscribers support their favorite creators with stablecoins in real-time. Utilizing p2p encryption, Creaton makes sure of exclusive permission-less content delivery to subscribers and eliminates the need for unnecessary middlemen or centralized services. Check out our DApp here:

Creaton live dev build

Demo video

Setup

requirements :

docker and docker-compose

docker and docker-compose are used to setup the external services (an ipfs node and a subgraph node)

If you prefer (or do not have access to docker/docker-compose) you can run them independently.

node

This app requires node.js (tested on v12+)

install dependencies :

npm install
cd contracts
npm install
cd ../react-app/
npm install
cd ../subgraph/
npm install

Development

Set environment variables

Create a .env file and set the following env variables in:

  • INFURA_TOKEN=<infura token to talk to a network>
  • MNEMONIC=<mnemonic of the account that will deploy the contract>
  • ALCHEMY_TOKEN=<alchemy token to talk to a network>
  • Superfluid Contracts:
# Checkout Superfluid Network Directory: https://docs.superfluid.finance/superfluid/networks/networks
# MUMBAI
SUPERFLUID_HOST = 0xEB796bdb90fFA0f28255275e16936D25d3418603
SUPERFLUID_CFA = 0x49e565Ed1bdc17F3d220f72DF0857C26FA83F873
SUPERFLUID_SUPERTOKENFACTORY = 0x200657E2f123761662567A1744f9ACAe50dF47E6
SUPERFLUID_RESOLVER = 0x8C54C83FbDe3C59e59dd6E324531FB93d4F504d3
SUPERFLUID_VERSION = v1

Deploy the contracts

Run ./command.py and choose deploy contracts. After deployment choose to update the contracts as well.

Run subgraph docker

First edit subgraph/docker-compose.yml end edit the etherum env variable to an api url in this format:

mumbai:https://polygon-mumbai.infura.io/v3/<YOUR_TOKEN>

Then run ./command.py and choose run subgraph docker.

Run react app

cd react-app
npm run start

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.