Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/erdemkosk/coeus-client
Coeus client npm wrapper
https://github.com/erdemkosk/coeus-client
Last synced: 25 days ago
JSON representation
Coeus client npm wrapper
- Host: GitHub
- URL: https://github.com/erdemkosk/coeus-client
- Owner: erdemkosk
- Created: 2022-03-25T21:05:00.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-03-28T21:24:28.000Z (almost 3 years ago)
- Last Synced: 2024-04-25T15:21:09.032Z (9 months ago)
- Language: JavaScript
- Size: 10.7 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Coeus Client
![Logo](https://i.imgur.com/Jgf7swu.gif)
## DocumentationCoeus 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```sh
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 = 3000app.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](https://github.com/erdemkosk/coeus)
## Deployment Coesus
### With Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/erdemkosk/coeus)