golos-blockchain / ui-blogs

Blogs interface for GOLOS blockchain
https://golos.id
MIT License
7 stars 8 forks source link

golos.id and golos.in

React.js web interface to the blockchain-based social media platform. It uses Golos blockchain, a fork of Steem blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications.

Why would I want to use?

Installation

We recommend using docker to run in production. This is how we run the live site and it is the most supported method of both building and running application. We will always have the latest version available on Docker Hub.

Clone the repository

git clone https://github.com/golos-blockchain/ui-blogs &&
cd ui-blogs

Run all services (production mode):

sudo docker-compose up

Install for Development mode

curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -

sudo apt-get install -y nodejs

npm install -g yarn

yarn install

yarn start

You now have your development front end running at localhost:8080, connected to the public GOLOS blockchain.

Production

Generate a new crypto_key and save under server_session_secret in /config/default.json.

node
> crypto.randomBytes(32).toString('base64')

Style Guides

File naming and location
Js & Jsx

We are using Airbnb JavaScript Style Guide with some modifications (see .eslintrc). Please run eslint in the working directory before committing your changes and make sure you didn't introduce any new styling issues.

CSS & SCSS

If component requires a css rule, please use its uppercase name for the class, e.g. "Header" class for the header's root div. We adhere to BEM methodology with exception for Foundation classes, here is an example for the Header component:

<!-- Block -->
<ul class="Header">
  ...
  <!-- Element -->
  <li class="Header__menu-item">Menu Item 1</li>
  <!-- Element with modifier -->
  <li class="Header__menu-item--selected">Element with modifier</li>
</ul>