目前基于steem的应用已经很多了,包括
以上大部分应用都是基于steemit修改web UI及一些逻辑后得的新平台,新平台上面发布的消息也会同步到steemit并获得投票奖励;正在考虑也搭建属于自己的基于steemit平台。
首先开始就是服务器搭建,目前谷歌云可以注册后免费使用一年时间,但是需要绑定信用卡;注册连接:https://cloud.google.com/,需要梯子(网上有很多教程)。
接着就是steemit源码下载并编译:https://github.com/skenan/condenser 步骤如下:
#git clone https://github.com/steemit/condenser
#cd condenser
#mkdir tmp
使用git下载源码,git也需要安装,centos 安装命令:yum install -y git。
安装nodejs版本管理工具nvm:https://github.com/creationix/nvm
命令:curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
or:wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
安装Nodejs:nvm install v8.7
接着需要安装yarn:
#npm install -g yarn
#yarn global add babel-cli
#yarn install --frozen-lockfile
#yarn run build
过程中可能会遇到类似webpack命令没有安装,如下图:
继续把这些没有的包装上就可以:npm install webpack -g #安装到全局。
最后在生产环境下运行命令如下:
yarn run production
正常运行后,默认开启端口为8080,就可以访问自己搭建的steemit了http://localhost:8080
由于我使用的是云服务器访问方式为服务器外网地址 http://ip:8080
最后,在这基础上就可以绑定自己的域名,修改代码变成自己喜欢的基于steemit平台了。
简单的理解,希望有牛人帮忙指正。