/block-change

Primary LanguageJavaScript

Block Change

Install

  1. npm install or yarn install
  2. Install Ethereum testnet: npm install -g ethereumjs-testrpc

Scripts

Development Environment

Start DB

  1. Start DB: npm run db
  • Stop DB: npm run db:stop
  1. Seed DB: npm run db:seed

Start Servers

  1. Run Ethereum testnet: npm run ethereum
  2. Run webpack build to generate front end: npm run build
  3. Run server: npm run start => http://localhost:3000

Alternative Front End: For React Debugging

  1. Start front-end dev server (web-dev-server): npm run start:wds => http://localhost:1337
  • Note: main server still required

Deploy

  1. Run build: npm run build:prod
  2. Run server: npm run start:prod

Test