0.4.1 • Published 4 years ago

@arcblock/devcon v0.4.1

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
4 years ago

DevCon DApp

Built upon forge-xmark-starter

Getting started

0. Requirements

  • Get mongodb up and running
  • Node.js v10.x (recommended)

1. Get the code

Clone the code and install dependencies.

git clone git@github.com:ArcBlock/devcon.git
cd devcon
make init

2. Create Configuration

Put following content in .env file at your repo root

# server only
MONGO_URI="mongodb://127.0.0.1:27017/devcon-2020"
APP_TOKEN_SECRET="37915b1ae3a42a5cca96368eb75ffbda0353734a6ded1bc788"
APP_TOKEN_TTL="1d"
APP_SK="0xfa0b27be974b3c2cbe77e4f8dc22073668de27809b2afc19b03385344edd93b7628ee09eb0753837915b1ae3a42a5cca96368eb75ffbda0353734a6ded1bc788"
APP_PORT="3030"

# both client and server
GATSBY_CHAIN_ID="playground"
GATSBY_CHAIN_HOST="https://playground.network.arcblockio.cn/api"
GATSBY_ASSET_CHAIN_ID="zinc-2019-05-17"
GATSBY_ASSET_CHAIN_HOST="https://zinc.network.arcblockio.cn/api"
GATSBY_APP_NAME="DevCon2020"
GATSBY_APP_DESCRIPTION="DevCon2020 DApp"
GATSBY_APP_ID="zNKt77Cbz2jn8wGv2PKXs9SLygwZ2gWEBhN5"
GATSBY_BASE_URL="http://192.168.1.2:3030"
GATSBY_API_PREFIX=""

Please remember to change GATSBY_BASE_URL to your local IP in the config file.

3. Start the App

make run

If the command does not exit with error, you can now preview the app at: http://localhost:8000/