Angotia SDK is a TypeScript library that provides a common (around Angotia game ecosystem) entities like: utils, interfaces, models etc. It useses axios to provide HTTP communnication across Node and Web projects. To run it locally, use yalc.
# run unit tests
$ npm run test
# watch unit tests
$ npm run test:watch
# full build
$ npm run yalc-publish
# full build + documentation + pushing library to attached locally repos
$ npm run yalc-publish
# generate documentation based on current build
$ npm run doc
# lint a whole library by eslint
$ npm run lint
Library supports below technology stacks:
- Next.js + Typescript (Node)
- Nest.js + Fastify (Node)
- React.js 17.x + Babel 7.x (Web)
Angotia SDK provides some functions for fetching resources over Internet. To provide support for web and Node applications, SDK uses axios library internally.
To enable library logger, add below variable to .env
file inside your project:
# Node.js projects
$ SDK_LOGGER=ENABLED
# Next.js projects
$ NEXT_PUBLIC_SDK_LOGGER=ENABLED
# React.js projects
$ REACT_APP_SDK_LOGGER=ENABLED
$ yalc add angotia-sdk