/metastellar

Constellation Dapp

Primary LanguageJavaScript

Metastellar

Constellation market on Blockchain

Getting Started

Install package dependencies
$ npm install
Regenerate star base for deploy
$ cd metastellar
$ ruby generate_star_seeds.rb
"Constellation Generated."
# for test purpose -> generate 5 stars only
$ ruby generate_star_seeds.rb -test
"Test Constellation Generated."
Generate search base for constellation search
$ cd metastellar
$ ruby generate_search_seeds.rb
Compile smart contract. (in case you updated MetaStellar.sol)
cd ethereum
node compile.js
# generates ethereum/build/MetaStellar.json
Prerequisite for Web3

Before compiling, static/data/credentials.json should be provided following spec. Here is example:

{
  "url": "http://ropsten.infura.io",
  "contractAddr": "0xe00fDd5D31c11eACb3D016cC5f9459F81214895f",
  "addr": "0xA408FCD6B7f3847686Cb5f41e52A7f4E084FD3cc",
  "privkey": "11111111111111111111111111111111111111111111"
}
Deploying smart contract & star bases
$ cd ethereum
# deploy stars only
$ node deploy.js
Test Solidity Smart Contract
npm run test
Run application in local environment
$ npm run dev
// check from: localhost: 3000
Deploy
cd metastellar
sudo service nginx restart
npm run build
pm2 start npm -- start

Technical specs

  1. React for Front-end application.
  2. Semantic UI for UI framework.
  3. Next.js for routing & server-side rendering.
  4. VirtualSky for constellation draw.
  5. Solidity for Ethereum smart contract.
  6. Mocha for testing.
  7. React Alert module from 'react-s-alert'

Reference