Skip to content

Commit

Permalink
Adding example-config and updating release.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
yasserf committed Jun 29, 2016
1 parent 095c6ab commit 47e51ed
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 7 deletions.
17 changes: 14 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,25 @@
This connector uses [the npm mongodb package](https://www.npmjs.com/package/mongodb). Please have a look there for detailed options.

##Basic Setup
```yaml
plugins:
storage:
name: mongodb
options:
connectionString: ${MONGODB_CONNECTION_STRING}
database: 'someDb'
defaultTable: 'someTable'
splitChar: '/'
```
```javascript
var Deepstream = require( 'deepstream.io' ),
MongoDBStorageConnector = require( 'deepstream.io-storage-mongodb' ),
server = new Deepstream();

server.set( 'storage', new MongoDBStorageConnector( {
connectionString: 'mongodb://test:[email protected]:10087/munchkin-dev',
splitChar: '/'
server.set( 'storage', new MongoDBStorageConnector( {
connectionString: 'mongodb://test:[email protected]:10087/munchkin-dev',
splitChar: '/'
}));

server.start();
Expand Down
8 changes: 8 additions & 0 deletions example-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
plugins:
storage:
name: mongodb
options:
connectionString: ${MONGODB_CONNECTION_STRING}
database: 'someDb'
defaultTable: 'someTable'
splitChar: '/'
10 changes: 6 additions & 4 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/bin/bash
set -e

if [ -z $1 ]; then
echo "Please provide a release version: patch, minor or major"
exit
Expand All @@ -14,8 +17,7 @@ npm version $1
echo 'Pushing to github'
git push --follow-tags

echo "Now we wait for the CI to build and upload artifacts to release"



echo 'Publishing to npm'
npm publish

echo "Now we wait for the CI to build and upload artifacts to release"

0 comments on commit 47e51ed

Please sign in to comment.