Liking cljdoc? Tell your friends :D

game.gm.market-seed

Idempotent startup seed for the Market taxonomy. Posts register-category and register-hashtag events to MoM as the Game Master so the marketplace UI has a non-empty set of categories and hashtags to render on day one.

Once a real curator process exists this seeder can go away.

Idempotent startup seed for the Market taxonomy. Posts register-category
and register-hashtag events to MoM as the Game Master so the marketplace
UI has a non-empty set of categories and hashtags to render on day one.

Once a real curator process exists this seeder can go away.
raw docstring

default-categoriesclj


default-hashtagsclj


seed-market!clj

(seed-market! mom-url game-name)
(seed-market! mom-url game-name {:keys [categories hashtags commerce-adapters]})

Register a game's categories and hashtags. Idempotent: re-running against an already-seeded MoM is a no-op (slug-taken responses are treated as success). Logs a summary line.

taxonomy is {:categories [...] :hashtags [...]}, normally the game spec's :market-seed. Omit either key to fall back to the defaults below.

The defaults are THE JS's — Merch, Music, Collabs — and they are wrong for any game that is not a band. They were imposed on every market game until Agents of Mind shipped with Music in its builder marketplace, which is how this was found. Passing nil keeps the old behaviour for the-js and aow; new games should declare their own.

Register a game's categories and hashtags. Idempotent: re-running against an
already-seeded MoM is a no-op (slug-taken responses are treated as success).
Logs a summary line.

`taxonomy` is {:categories [...] :hashtags [...]}, normally the game spec's
:market-seed. Omit either key to fall back to the defaults below.

The defaults are THE JS's — Merch, Music, Collabs — and they are wrong for any
game that is not a band. They were imposed on every market game until Agents
of Mind shipped with `Music` in its builder marketplace, which is how this was
found. Passing nil keeps the old behaviour for the-js and aow; new games
should declare their own.
raw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close