forked from pouchdb/pouchdb-express-router
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f657399
commit 2190ac0
Showing
2 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
'use strict'; | ||
|
||
// PouchDB is not a dependency of pouchdb-express-router so to run | ||
// this example server you will need to `npm install pouchdb` | ||
// TODO: would be nice to have the error message say that. | ||
var PouchDB = require('pouchdb'); | ||
|
||
var router = require('./index.js'); | ||
var app = require('express')(); | ||
|
||
const PORT = process.env.PORT || 5984; | ||
|
||
app.use(router(PouchDB)); | ||
app.listen(PORT); |