Giter VIP home page Giter VIP logo

dappforce / subsocial-offchain Goto Github PK

View Code? Open in Web Editor NEW
33.0 2.0 16.0 3.61 MB

Off-chain storage for Subsocial blockchain. This app builds user feeds and notifications by subscribing to Substrate events.

Home Page: http://subsocial.network

License: GNU General Public License v3.0

JavaScript 11.57% TypeScript 72.00% Dockerfile 1.79% Shell 14.64%
offchain off-chain offchain-storage polkadot substrate postgres postgresql activity-feed activity-stream news-feed

subsocial-offchain's Introduction

Subsocial Faucet by DappForce

Subsocial is a set of Substrate pallets with web UI that allows anyone to launch their own decentralized censorship-resistant social network aka community. Every community can be a separate Substrate chain and connect with other communities via a Polkadot-based relay chain.

You can think of this as decentralized versions of Reddit, Stack Exchange or Medium, where subreddits or communities of Stack Exchange or blogs on Medium run on their own chain. At the same time, users of these decentralized communities should be able to share their reputation or transfer coins and other values from one community to another via Polkadot relay chain.

To learn more about Subsocial, please visit Subsocial Network.

Supported by Web3 Foundation

Web3 Foundation grants badge

Subsocial is a recipient of the technical grant from Web3 Foundation. We have successfully delivered all three milestones described in Subsocial's grant application. Official announcement.

Setup

# Install Node.js dependencies
yarn

# Compile TypeScript
yarn build

# Run
yarn start

Available scripts

  • clean - remove coverage data, Jest cache and transpiled files,
  • build - transpile TypeScript to ES6,
  • start - run subscribe and express-api servers,
  • api - run only express-api server,
  • subscribe - run only subscribe server

Interaction with off-chain repository via Docker

Start infrastructure

Run PostgreSQL, IPFS Node, IPFS Cluster and ElasticSearch in docker containers with one command:

./docker/run.sh

Additional options to provide to the development script mentioned above:

  • --stop - just kills containers, data won't be lost.
  • --stop --clean - stops the containers and removes all related docker volumes (data). At the end asks whether to delete ipfs-data folder in ./docker/ directory.
  • +peers - add an IPFS peer to the starting node. (e.g. +peers /ip4/<IP_ADDRESS>/tcp/4001/p2p/<PEER_ID>)

Build your own docker image

docker build . -f docker/Dockerfile -t subsocial-offchain:latest

Start all parts of Subsocial at once with Subsocial Starter

License

Subsocial is GPL 3.0 licensed.

subsocial-offchain's People

Contributors

dependabot[bot] avatar f3joule avatar olehmell avatar omidasadpour avatar sagaidak avatar samchuk-vlad avatar siman avatar subsocialdev avatar tusharojha avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

subsocial-offchain's Issues

Offchain-backend elastic search problem

Staging offchain backend can't connect to elastic search . (It's related to SSL problem)

Image

Maybe we have this problem on production too . (I can't access to see it's logs)

Postgres: change activity id to unique composite key based on block_number and event_index

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.