Skip to content
Snippets Groups Projects
user avatar
Valentine Zavgorodnev authored
* 0.0.161014 release (#484)

* Auto re-establish session by resending email verification link. #467 (#472)

* Validate all transfer amounts to at most 3 decimal places. (#466)

* Warning cleanup

* Validate all transfer amounts to at most 3 decimal places. close #461

* Add formatting to saving account balance. close #462 (#463)

* Fix $ Signs in Locale Strings

* Power up should not show memo. close #474 (#475)

* Fixes save login checkbox to remember last status. Simplify react form types. close #482 (#483)

* 478 fix create account's form issue and a couple of more minor fixes (#480)

* fix  issue when get_accounts API call fails

* reset an error before making api call

* one more fix

* better handle existing email edge case

* use 302 redirects not 301

* Replace Math.random with secure-random. #478

* Lock down confirm email lookup to email identity provider records. #478

* Start over link more consistent order by in Identites sql. #478

* Revert "Start over link more consistent order by in Identites sql. #478"

This reverts commit dea06a543f6ee288d05a9d976710712fad47028d.

* reset session.user in /enter_email

* start registration process if user get to create_account page and has no id in session yet

* Add a few DESC to Identity.ID order by.

* update comment

* misc copy updates
f158636e
History

Steemit.com

======== Steemit.com is the react.js web interface to the world's first and best blockchain-based social media platform. It uses STEEM, a blockchain powered by Graphene 2.0 technology to store JSON-based content for a plethora of web applications.

Why would I want to use Steemit.com?

  • Learning how to build blockchain-based web applications using STEEM as a content storage mechanism in react.js
  • Reviewing the inner workings of the steemit.com social media platform
  • Assisting with software development for steemit.com

Installation

Clone the repository and make a tmp folder

git clone https://github.com/steemit/steemit.com
cd steemit.com
mkdir tmp

Install dependencies

# Install at least Node v6.3 if you don't already have it ([NVM](https://github.com/creationix/nvm) recommended)
nvm install v6

npm install
npm install -g babel-cli

Create config file

cd config
cp steem-example.json steem-dev.json

(note: it's steem.json in production)

Install mysql server

OS X :

brew update
brew doctor
brew upgrade
brew install mysql
mysql.server restart

Debian based Linux:

sudo apt-get update
sudo apt-get install mysql-server

Now launch mysql client and create steemit_dev database:

mysql -u root
> create database steemit_dev;

Install sequelize-cli globally:

npm install -g sequelize sequelize-cli pm2 mysql

Run sequelize db:migrate in db/ directory.

Development

npm start

You now have your development front end running at localhost:3002, connected to the main public steem blockchain. You don't need to run steemd locally, by default you will connect to ws://node.steem.ws. Use your regular account name and credentials to login -- there is no separate dev login.

Style Guides

File naming and location
  • 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
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>

Production

If you want to test it locally in production mode, just run the following commands:

npm run build
npm run prod

or via pm2:

npm run build
npm -i -g pm2 # one time
pm2 start config/process.json

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@steemit.com

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