1.0.5 • Published 2 years ago

coeus-client v1.0.5

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Coeus Client

Logo

Documentation

Coeus is a custom flag and config service creation tool. Its main purpose is to make business decisions used in many projects or to turn off some features when requested, or to keep translations for applications that serve in more than one language. You can easily access the necessary data by cloning and using the npm client. It's free, the only fee is your own server fee. For this reason, it can be changed individually.

▪️ It can be used to turn on or off some features in the system. ▪️Information that can change at any time, such as a phone number, can be stored. ▪️It can be used as a translation storage tool for multiple languages.

This package using for wrapper for actions

In addition, it has a simple panel that is protected by the password you set. In this way, you can easily enter, update or delete your data.

Using

const coeus = require('coeus-client');
const config = require('../../config');

coeus.connect({
  url: config.coeus.url,
  identity: config.coeus.identity,
  password: config.coeus.password,
  interval: config.coeus.interval,
});

coeus.client.addKeys({ keys: ['co:email', 'co:json', 'co:NUMBER_OF_GOOD_TIMES'] });

// this is updated event on every interval
coeus.client.on('updated', (configs) => {
  console.log(configs);
});
// this error event for when getting error on server
coeus.client.on('error', (value) => {
  console.log(value);
});

const express = require('express')
const app = express()
const port = 3000

app.get('/', (req, res) => {
    res.send(coeus.client.getConfig({ key: 'co:NUMBER_OF_GOOD_TIMES' }))
})

app.listen(port, () => {
    console.log(`Example app listening on port ${port}`)
})

Links

Coeus

Deployment Coesus

With Heroku

Deploy

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago