Dev Watch Mode
yarn start
To Build
./build.sh
# builds to dist/
Note: Dont use built stuff (see Example)
yarn test:coverage
open coverage/index.html
import { initializeMuleSdk } from 'mule-sdk-js';
let yourMuleServicesUrl = "http://muleserver.com:313/";
let sdk = initializeMuleSdk(yourMuleServicesUrl);
sdk.doStuff();
SDK.Users.indexQ()
SDK.Users.createQ(params)
SDK.Users.readQ(userId)
SDK.Users.loginQ()
SDK.Users.sessionQ(params)
SDK.Games.indexQ()
SDK.Games.createQ(params)
SDK.Games.readQ(gameId)
SDK.Games.readUsersGamesQ(userId)
SDK.Games.joinGameQ(gameId)
SDK.Games.getPlayersMapQ(game)
SDK.RuleBundles.indexQ()
SDK.RuleBundles.readQ()
SDK.GameBoards.indexQ()
SDK.GameBoards.readQ(gameBoardId)
SDK.GameBoards.readGamesBoardQ(gameId)
SDK.GameStates.indexQ()
SDK.GameStates.readQ(gameStateId)
SDK.GameStates.readGamesStateQ(gameId)
SDK.Historys.indexQ()
SDK.Historys.readQ(historyId)
SDK.Historys.readGamesHistoryQ(gameId)
SDK.Historys.readGamesFullHistoryQ(gameId)
SDK.Historys.getWhosTurnIsIt(history)
SDK.Turns.readQ(turnId)
SDK.Turns.readGamesTurnQ(gameId, turnNumber)
SDK.PlayTurn.submitQ(params)
SDK.PlayTurn.sendGameTurnQ(gameId, params)
SDK.Q - Q library
SDK.utils.getUrlParameter(paramName)
SDK.Spinal() - creates Spinal instance
mySpinal.initQ(spinalConfig)
mySpinal.startRefresh()
mySpinal.stopRefresh()