0.0.6 • Published 4 years ago

@dekproject/comtele v0.0.6

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

@dekproject/comtele

Comtele interface plugin for DEK

What does this plugin do?

  • Control configuration for connection to Comtele in production development mode in a simplified way with dotenv
  • Performs connection implementation along the lines ES6 being pre requirement to start the project

Instalation

To install the bootstrap we recommend using the CLI

$ yarn add @dekproject/comtele --save
$ nano .env

In the .env file add the following settings

COMTELE_KEY=MYKEY
COMTELE_SENDER=Eu

Usage

Using direct

$ npm i @dekproject/scope

Using in the standard DEK skeleton

import { $, app, comtele } from "@dekproject/scope";

app.get("/sendsms", (req, res) => {
    comtele.send("2199999999", "SMS Test");
});

$.wait("comtele").then(() => {
    app.listen(PORT, () => {
        console.log(`App listening on port ${PORT}!`);
    });
});
0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago