Coder Social home page Coder Social logo

calciferlo / ecency-vision Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ecency/ecency-vision

0.0 0.0 0.0 55.5 MB

Immutable, decentralized, uncensored, rewarding communities built, owned and operated by its users

Home Page: https://ecency.com

License: MIT License

Shell 0.01% JavaScript 0.66% TypeScript 80.19% CSS 0.97% HTML 0.05% Dockerfile 0.04% SCSS 18.10%

ecency-vision's Introduction

Discord Twitter Follow GitHub Repo stars

Ecency vision โ€“ Ecency Web/Desktop client

ecency

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

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

Website

Desktop app

Please check latest version on Release page or Ecency link.

  • Mac users: Ecency-3.x.x.dmg
  • Windows users: Ecency.Setup.3.x.x.exe
  • Linux users: ecency-surfer_3.x.x_amd_64.deb, Ecency-3.x.x.AppImage, ecency-surfer-3.x.x.x86_64.rpm, ecency-surfer-3.x.x.tar.gz

Developers

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

Build instructions

Requirements
  • node ^12.0.0
  • yarn
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
  • USE_PRIVATE - if instance has private api address and auth (0 or 1 value)
  • HIVESIGNER_ID - This is a special application Hive account. If unset, "ecency.app" is the account used.
  • HIVESIGNER_SECRET - This is a secret your site shares with HIVE_SIGNER in order to communicate securely.
  • REDIS_URL - support for caching amp pages
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

Start desktop in dev

$ cd src/desktop $ yarn $ yarn dev

Pushing new code / Pull requests
  • Make sure to branch off your changes from development branch.
  • Make sure to run yarn test and add tests to your changes.
  • Make sure new text, strings are added into en-US.json file only.
  • Code on!

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:

  • USE_PRIVATE
  • REDIS_URL
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

  • Make PRs more clear with description, screenshots or videos, linking to issues, if no issue exist create one that describes PR and mention in PR. Reviewers may or may not run code, but PR should be reviewable even without running, visials helps there.
  • PR should have title WIP, if it is not ready yet. Once ready, run yarn test and update all tests, make sure linting also done before requesting for review.
  • Creating component?! Make sure to create simple tests, you can check other components for examples.
  • Always make sure component and pages stay fast without unnecessary re-renders because those will slow down app/performance.

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: [email protected]

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

ecency-vision's People

Contributors

feruzm avatar talhasch avatar mghazanfar avatar dkildar avatar adesojisouljay avatar mtsaeed avatar kodcuserkan avatar muhammadahmad57 avatar dependabot[bot] avatar tipyy avatar xurwi avatar armishmunir avatar igormuba avatar shawnpringle avatar talentdev1680 avatar 4ykw avatar bondcoder97 avatar

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.