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.
- Learning how to build blockchain-based applications using GOLOS as a content storage
- Reviewing the inner workings of the social media platform
- Assisting with software development for GOLOS blockchain
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.
git clone https://github.com/golos-blockchain/ui-blogs &&
cd ui-blogs
Run all services (production mode):
sudo docker-compose up
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.
Generate a new crypto_key and save under server_session_secret in /config/default.json.
node
> crypto.randomBytes(32).toString('base64')
- Prefer CamelCase js and jsx file names
- Prefer lower case one word directory names
- Keep stylesheet files close to components
- Component's stylesheet file name should match component name
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.
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>