Skip to content

Commit

Permalink
updates #10 | updates: package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
imsheth committed Sep 3, 2020
1 parent 12f9b97 commit 6dd9109
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,22 @@ The 'notif-engine' is an 'npm module' to store notifications before sending them

## How to use

### Installation

#### Via npm

```shell
$ npm i @coffeebeanslabs/notif-engine
```

#### Via yarn

```shell
$ yarn add @coffeebeanslabs/notif-engine
```

### Concepts for entities involved

#### Templates

- The templates provide a mechanism to configure a base for each supported channel which will be string replaced by the data in transactions to generate the actual data that will be stored in the respective collections of that respective channel and this actual data stored will be used to send the notification via the configured service provider
Expand Down Expand Up @@ -78,6 +93,7 @@ db.getCollection('<schema_name_here>').insertOne({
## Contributing

### Pull requests
And, of course, feel free to submit pull requests with bug fixes/changes/feature additions. All contributions are always welcomed!

To get started: [fork](https://help.github.com/articles/fork-a-repo/) this repository to your own GitHub account and then [clone](https://help.github.com/articles/cloning-a-repository/) it to your local device.
Expand All @@ -86,6 +102,17 @@ To get started: [fork](https://help.github.com/articles/fork-a-repo/) this repos
$ git clone git@github.com:[YOUR_USERNAME]/notif-engine.git && cd notif-engine && npm install
```

### [Publish on npm](https://www.npmjs.com/package/np)
```shell
$ np
```

### [Publish on yarn](https://classic.yarnpkg.com/en/docs/publishing-a-package/)
```shell
$ yarn publish
$ yarn info @coffeebeanslabs/notif-engine // for package info
```

Then add, commit, push to your repo and finally send a [pull request](https://help.github.com/articles/creating-a-pull-request/)


Expand Down

0 comments on commit 6dd9109

Please sign in to comment.