ecency / ecency-vision

Immutable, decentralized, uncensored, rewarding communities built, owned and operated by its users
https://ecency.com
MIT License
54 stars 55 forks source link
blockchain dapp decentralized desktop ecency hive wallet website

Discord Twitter Follow GitHub Repo stars

Ecency vision – Ecency Web client

ecency

Immutable, decentralized, uncensored, rewarding communities powered by Hive.

Fast, simple and clean source code with Reactjs + Typescript.

Website

Developers

Feel free to test it out and submit improvements and pull requests.

Build instructions

Requirements
Clone

$ git clone https://github.com/ecency/ecency-vision

$ cd ecency-vision

Install dependencies

$ yarn

Edit config file or define environment variables

$ nano src/config.ts

Environment variables
Hivesigner Variables

When setting up another service like Ecency with Ecency-vision software:

  1. You may leave HIVESIGNER_ID and HIVESIGNER_SECRET environment variables unset and optionally set USE_PRIVATE=1 and leave "base" in the constants/defaults.json set to "https://ecency.com". Your new site will contain more features as it will use Ecency's private API. This is by far the easiest option.
  2. You may change base to the URL of your own site, but you will have to set environment variables HIVESIGNER_ID and HIVESIGNER_SECRET; set USE_PRIVATE=0 as well as configure your the HIVESIGNER_ID account at the Hivesigner website.. Hivesigner will need a secret, in the form of a long lowercase hexadecimal number. The HIVESIGNER_SECRET should be set to this value.
Hivesigner Login Process

In order to validate a login, and do posting level operations, this software relies on Hivesigner. A user @alice will use login credentials to login to the site via one of several methods, but the site will communicate with Hivesigner and ask it to do all posting operations on behalf of @alice. Hivesigner can and will do this because both @alice will have given posting authority to the HIVESIGNER_ID user and the HIVESIGNER_ID user will have given its posting authority to Hivesigner.

Edit "default" values

If you are setting up your own website other than Ecency.com, you can still leave the value base as "https://ecency.com". However, you should change name, title and twitterHandle. There are also a lot of static pages that are Ecency specific.

Start website in dev

$ yarn start

Pushing new code / Pull requests

Docker

You can use official ecency/vision:latest image to run Vision locally, deploy it to staging or even production environment. The simplest way is to run it with following command:

docker run -it --rm -p 3000:3000 ecency/vision:latest

Configure the instance using following environment variables:

docker run -it --rm -p 3000:3000 -e USE_PRIVATE=1 ecency/vision:latest

Swarm

You can easily deploy a set of vision instances to your production environment, using example docker-compose.yml file. Docker Swarm will automatically keep it alive and load balance incoming traffic between the containers:

docker stack deploy -c docker-compose.yml -c docker-compose.production.yml vision

Contributors

Contributors

Note to DEVS

Issues

To report a non-critical issue, please file an issue on this GitHub project.

If you find a security issue please report details to: security@ecency.com

We will evaluate the risk and make a patch available before filing the issue.