• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

numaverse/numaverse-gateway: A federated social network, built on Ethereum and I ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

numaverse/numaverse-gateway

开源软件地址:

https://github.com/numaverse/numaverse-gateway

开源编程语言:

Ruby 65.2%

开源软件介绍:

Numaverse Gateway

This project hosts the web server that acts as a gateway to the Numa network. Documentation is currently sparse, but will improve soon.

To setup a development environment locally, first run a few basic setup steps:

Clone the repository:

git clone [email protected]:numaverse/numaverse-gateway.git
cd numaverse-gateway

Install ruby and node dependencies:

bundle -j4
yarn

Setup the database:

bundle exec rails db:setup

You'll also need to setup a local Ethereum chain for testing. This will setup a single account that, when you run the dev chain, will have a very large amount of funds. You can then import the private key into MetaMask and use that account to setup and fund other testing accounts. Obviously, that private key should never be used on the Ethereum main net, or you might get your funds stolen.

geth account import --password ./dev-chain/password.txt --keystore ./dev-chain/geth-keys --datadir ./dev-chain/geth-data dev-chain/account.txt 

I recommend using overmind to run all the processes needed for development (there area lot).

Then, run:

overmind s -f Procfile.dev

And you'll have the following processes:

  1. An IPFS daemon
  2. A local ethereum chain in development mode (no mining)
  3. A rails server
  4. A webpack server for hot reloading
  5. Livereload for regular page reloading
  6. A sidekiq worker process

If you made it this far, you should have a server running at http://localhost:9000




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap