@signageos/lib

15.5.3 • Public • Published

General Library

This repository contains all sets of generic TypeScript tools and utils for different technologies, like databases: 'MongoDB, AMQP (RabbitMQ), Redis, PostgreSQL, InfluxDB', monitoring in Prometheus, wrappers and helpers for Azure SDK, Browser Storage, time management, observables, async iterators and a lot more.

It's published as an npm library @signageos/lib that can be used in any project that requires and is using those technologies to simplify the business logic.

The library could be potentially separated into more libraries with a single purpose in the future. Currently, keeping the library in one package is still more practical than maintaining it separately.

ℹ️ If you are not logged in, run docker login https://registry.gitlab.com/ -u YOUR_USERNAME@signageos.io -p YOUR_PERSONAL_ACCESS_TOKEN

  1. docker-compose up -d
cat >> config/env.test.json << EOF
{
  "amqp_dsn": "amqp://guest:guest@localhost:5672/",
  "redis_dsn": "redis://localhost:6379",
  "mongo_db_dsn": "mongodb://localhost:27017/test",
  "postgres_dsn": "postgres://postgres:postgres@localhost:5432/test"
}
EOF
  1. npm test

Limitations

This repository shouldn't have any @signageos dependencies. Otherwise there will be problem cyclic dependencies

Tests

Some integration tests require secrets which are specified in the .env.test.yaml. These values can be exported to the .env.docker-compose with running script bash tools/get-test-env-variables.sh.

CI/CD

Required secrets from test needs to be added to the gitlab CI/CD variables

Tools

get-test-env-variables.sh - exports environment variables from helm to .env.docker-compose. Must be run with bash

Readme

Keywords

none

Package Sidebar

Install

npm i @signageos/lib

Weekly Downloads

311

Version

15.5.3

License

MIT

Unpacked Size

20.3 kB

Total Files

16

Last publish

Collaborators

  • misak113
  • kytart
  • petrbily
  • signageos.io