2.0.8 • Published 3 years ago

awake-heroku v2.0.8

Weekly downloads
72
License
ISC
Repository
github
Last release
3 years ago

Awake-Heroku

Installation

  • Install Node.js

  • $ npm install awake-heroku --save

Types

IAppInfo

FieldRequiredTypeDescription
idfalsenumberUnique ID
urltruestringYour URL you want wakeup
lastHeartBeatfalsenumberLast time wakeup

IAwakeService

FieldTypeDescription
addvoidAdd new herou app to wakeup
removevoidRemove heroku app and stop wakeup that
getvoidGet heroku infomation by id
getAllIAppInfo[]List heroku applications (app)
startvoidStart wakeup your heroku apps
stopvoidStop wakeup your heroku apps

Usage

Insert bellow lines to index file of your project such as : app.js, index.js, root.js , ...

Using ES6

const { AwakeHeroku } = require("awake-heroku");

AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");
AwakeHeroku.add("https://your-app-name-2.herokuapp.com");

// Start service
AwakeHeroku.start();

Using CommonJS

import { AwakeHeroku } from "awake-heroku";

AwakeHeroku.add("https://your-app-nam-1.herokuapp.com");
AwakeHeroku.add("https://your-app-name-2.herokuapp.com");

// Start service
AwakeHeroku.start();

To stop using AwakeHeroku

import AwakeHeroku from "awake-heroku";
// Stop service
AwakeHeroku.stop();

Please feel free to submit your issue or request feature

Create : https://github.com/quangpl/awake-heroku/issues/new

Roadmap

MVP version

Convert to Typescript

Support wakeup multi-applications

Send HTTP request by lightwieght

Prepare structure to create CLI

Error Handler

Create CLI

2.0.7

3 years ago

2.0.8

3 years ago

2.0.6

3 years ago

2.0.5

3 years ago

2.0.3

3 years ago

2.0.4

3 years ago

2.0.2

3 years ago

2.0.1

3 years ago

2.0.0

3 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.9

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago