Giter Site home page Giter Site logo

pnedunuri / numaverse-gateway Goto Github PK

View Code? Open in Web Editor NEW

This project forked from numaverse/numaverse-gateway

0.0 1.0 0.0 5.57 MB

A federated social network, built on Ethereum and IPFS.

Home Page: https://numaverse.com

License: MIT License

JavaScript 4.99% Ruby 65.08% CoffeeScript 0.90% CSS 1.23% Vue 16.68% HTML 10.89% Shell 0.23%

numaverse-gateway's Introduction

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

numaverse-gateway's People

Contributors

hstove avatar wbnns avatar

Watchers

Pruthvi Nadunooru avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.