Using the Game List Download Utility
Sometimes it is better to use a ready-made utility to download the initial list of games to the provider. An example of such a utility for node.js is provided in the SDK and is located here:
sample-account-client/update-games.js
Launching is similar to launching any other project for node.js. In two steps: installing all the necessary dependencies - yarn install or npm install and the utility node ./update-games.js:
$ ls -1a
.
..
.git
.gitignore
countries
currencies
documentation.md
languages
sample-account-client
sample-game-server
$ cd sample-account-client/
$ yarn install
yarn install v1.22.10
[1/4] 🔍 Resolving packages...
success Already up-to-date.
✨ Done in 0.05s.
$ node ./update-games.js
Options:
--version Show version number [boolean]
-s, --secret Content provider’s secret [string] [required]
-p, --contentProviderId [string] [required]
-a, --accountId [string] [required]
-g, --games path to file with list of games in yaml format
[string] [required]
-h, --help Show help [boolean]
Missing required arguments: contentProviderId, secret, games, accountId
Please provide required args
$