Skip to content

1aerostorm/chainbb-frontend

 
 

Repository files navigation

Clone

git clone https://github.com/golos-blockchain/chainbb-frontend
cd chainbb-frontend

Configure

After cloning project with Git, you have 2 files - config.js and configSecure.js in chainbb-frontend folder.

"Main idea" is what you can replace "GolosTalk" in config.js and configSecure.js with your actual forum name.

But there are also some manipulations required to deploy chainBB on your server. They are described below.

config.js

You should set REST_API to your URL with 5000 port where chainbb-rest should run. Example: http://127.0.0.1:5000.

configSecure.js

You should set account to account which should be used as creator of new accounts, referer to account which should be used as referer for them, signing_key to active private key of account, and gmail_send to some @gmail.com mailbox which should be used as sender of registration emails (pass should be an application password, not just password of your mailbox).

Deployment

chainbb-rest runs on 5000 port, and main chainbb site runs on http://localhost:3000

There are 3 ways to deploy.

Docker Compose (recommended)

Requires Docker and Docker Compose.

docker-compose up

Docker without Compose

Requires Docker.

sudo docker build -t local/chainbb-rest -f server/Dockerfile .
sudo docker run -d -p 5000:5000 --name chainbb-rest local/chainbb-rest

sudo docker build -t local/chainbb -f Dockerfile .
sudo docker run -d -p 3000:3000 --name chainbb local/chainbb

Manual

Requires Node.js 10 or newer.

cd server
npm install
node index.js & disown
cd ..
npm install --global gulp-cli
npm install fsevents@latest -f --save-optional
npm install
npm start

Troobleshooting

Wrong statistics of top/comments in categories

Use fix_stats tool.

About

ReactJS forum interface for GOLOS blockchain

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 71.4%
  • Less 28.0%
  • CSS 0.6%
  • Dockerfile 0.0%
  • Shell 0.0%
  • HTML 0.0%