Skip to content

Commit

Permalink
docs: update usage docs
Browse files Browse the repository at this point in the history
  • Loading branch information
lykmapipo committed Aug 29, 2019
1 parent c7764e4 commit e6d93f5
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,14 @@ npm install @codetanzania/majifix-status --save
## Usage

```js
const mongoose = require('mongoose');
const { app } = require('@codetanzania/majifix-status');
import { connect } from '@lykmapipo/mongoose-common';
import { Status, start } from '@codetanzania/majifix-status';

//connect to mongodb
mongoose.connect(process.env.MONGODB_URI);
// connect to mongodb
connect(process.env.MONGODB_URI, error => { ... });

//fire the app
app.start(function (error, env) {
...
});
// fire http server
start(error => { ... });
```

## Testing
Expand Down

0 comments on commit e6d93f5

Please sign in to comment.