Skip to content

astrocket/metastellar

Repository files navigation

Metastellar project.

Constellation market on Ethereum & Metadium Blockchain for Metadium demo App purpose.

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
Figuring ethereum enviroment

static/data/credentials.json You can set your basic credentials here.

Deploying smart contract & star bases.
$ cd ethereum
# deploy contract & stars to mainnet through infura
$ node deploy.js network=mainnet contract
# deploy stars only to rinkeby through infura
$ node deploy.js network=rinkeby
# deploy stars only to metadium through metadium_api
$ node deploy.js network=metadium
# deploy stars only to ropsten through infura
$ node deploy.js
Test Solidity Smart Contract
npm run test
Run application in local environment
$ npm run dev
// check from: localhost: 3000

Deploy procedure

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'

Star related.

Reference

About

Constellation Dapp

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published