Skip to content

Commit

Permalink
update readm
Browse files Browse the repository at this point in the history
  • Loading branch information
talaikis committed Aug 25, 2019
1 parent 56509c8 commit a35d327
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,12 @@ npm i -S @talaikis/contact-us
import { start, config } from '@talaikis/contact-us'
// config(email, mailgunDomain, mailgunKey, recipient, serviceKey)
// for example:
config('[email protected]', 'talaikis.com', 'key-XXXXX', '[email protected]', 'blahblah')
start(3000) // <- port
const conf = config('[email protected]', 'talaikis.com', 'key-XXXXX', '[email protected]', 'blahblah')
start(3000, conf) // <- port
```

That's it, you can go to `http://localhost:3000/ping`

## Sample request

```js
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@talaikis/contact-us",
"version": "1.1.3",
"version": "1.1.4",
"description": "Contact us API service.",
"main": "dist/index.js",
"scripts": {
Expand Down

0 comments on commit a35d327

Please sign in to comment.