https://github.com/arcblock/devcon-2020
ArcBlock Devcon 2020 Website
https://github.com/arcblock/devcon-2020
Last synced: 10 months ago
JSON representation
ArcBlock Devcon 2020 Website
- Host: GitHub
- URL: https://github.com/arcblock/devcon-2020
- Owner: ArcBlock
- License: other
- Created: 2020-11-09T01:03:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-03-07T00:24:14.000Z (over 3 years ago)
- Last Synced: 2025-02-22T18:50:56.440Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://devcon.arcblock.io/
- Size: 9.2 MB
- Stars: 0
- Watchers: 21
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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.
```shell
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
```ini
# 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
```shell
make run
```
If the command does not exit with error, you can now preview the app at: http://localhost:8000/