avenluutn

module
v0.0.0-...-9a22d36 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2022 License: Apache-2.0

README

Aavenluutn

(AH-ven-LOO-tn) Adventure stories in the lootverse

Dev env requirements

  • nodejs (v16.4.2)
  • yarn
  • docker
  • docker-compose
  • jq

To run locally

Generate go contract abis (for both echo folders)

build the contracts (from hardhat)

/hardhat $ yarn
/hardhat $ yarn build

generate the go abis (from echo-warmer)

/echo-warmer $ source wake
/echo-warmer $ wake abigen

generate the go abis (from echo-token-metadata)

/echo-token-metadata $ source wake
/echo-token-metadata $ wake build

NOTE: TODO the two wake scripts is pretty bad, there is an issue to change that soon

Run the dev stack

$ docker-compose -f docker-compose.yml -f docker-compose-local.yml up -d

Run the dev UI server (from /react)

Find the publisher address from the hardhat logs and update react/src/constants.ts

docker-compose logs hardhat (or grab it from the output of the deploy)

Then run the dev server

/react $ yarn dev

To deploy or add narrators to test nets

You'll need keybase cli set up with the squad_games team file system synced

yarn deploy:goerli

To publish the UI

Build it and then manually deploy the dist folder to netlify

/react $ yarn build

Deploy the backend

Run the production stack on the server

$ docker-compose up -d

To update original script content

Create any updates in the google sheet

Use the csv menu to export all as csv. Download the resulting google drive folder and move its contents to ./scripts/csv-to-json/csv.

Run scripts % yarn build-csv

Directories

Path Synopsis
echo

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL