@dekproject/comtele
Comtele interface plugin for DEK
Last updated 3 months ago by andrehrf .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @dekproject/comtele 
SYNC missed versions from official npm registry.

@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}!`);
    });
});

Current Tags

  • 0.0.6                                ...           latest (3 months ago)

6 Versions

  • 0.0.6                                ...           3 months ago
  • 0.0.5                                ...           3 months ago
  • 0.0.4                                ...           3 months ago
  • 0.0.3                                ...           3 months ago
  • 0.0.2                                ...           3 months ago
  • 0.0.1                                ...           3 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 6
Last Day 0
Last Week 6
Last Month 0
Dependencies (1)
Dev Dependencies (5)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |