Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mono repo take three #168

Merged
merged 300 commits into from
Feb 18, 2017
Merged
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
300 commits
Select commit Hold shift + click to select a range
0d59572
(#39) - implement replication history
nolanlawson May 24, 2014
040fb76
(#41) - return correct error code in changes
nolanlawson May 24, 2014
763c1f7
0.2.0
nolanlawson May 28, 2014
f68853b
(#46) - make uuids more random
nolanlawson May 28, 2014
a1f83db
(pouchdb/pouchdb-server#38) - in-memory/filepath option
nolanlawson Jun 1, 2014
f44246d
0.3.0
nolanlawson Jun 4, 2014
4229b67
(#45) - update fauxton
nolanlawson Jun 1, 2014
d540afc
(#55) - stub out _config
nolanlawson Jun 4, 2014
1d1c04e
(#58) - return the right status code
nolanlawson Jun 8, 2014
8a76524
(#14) - adds rewrites support
marten-de-vries Jun 13, 2014
66b6f76
(#62) - remove useless logging
nolanlawson Jun 24, 2014
5644e5e
(#65) - Adds list, show & update function support.
marten-de-vries Jul 4, 2014
baf799f
(#66) - stub out _log, _stats
nolanlawson Jul 5, 2014
222e734
(#59) - Update Fauxton with new branding
nolanlawson Jul 5, 2014
61006dc
0.3.1
nolanlawson Jul 6, 2014
987a989
(#69) - Adds validate_doc_update function support
marten-de-vries Jul 7, 2014
c64ec6f
(#71) - Some improvements (couchdb-harness progress)
marten-de-vries Jul 8, 2014
0170fe7
0.4.0
nolanlawson Jul 9, 2014
5c0634b
(#73) - Test in travis with pouchdb-server
nolanlawson Jul 10, 2014
2d5cc2e
(#72) - add verifyinstall
nolanlawson Jul 9, 2014
f4b7afe
0.5.0
nolanlawson Jul 12, 2014
f7071a0
(pouchdb/pouchdb#2537) - lock express to 4.6.1
nolanlawson Jul 26, 2014
395154b
0.5.1
nolanlawson Jul 27, 2014
2ee456b
(#78) - clearer contributing guidelines
nolanlawson Jul 27, 2014
ecde3fb
(#81) - fixes for npm-fullfat-registry
nolanlawson Aug 4, 2014
87db1f4
0.5.2
nolanlawson Aug 5, 2014
487d01a
(pouchdb/pouchdb#2546) - better error handling
calvinmetcalf Aug 1, 2014
086d61c
0.5.3
nolanlawson Aug 5, 2014
37277f1
(#85) - only use rawBodyParser where necessary
nolanlawson Aug 5, 2014
0ff7264
0.5.4
nolanlawson Aug 6, 2014
92bb88e
(#85) - actually implement multipart correctly
nolanlawson Aug 6, 2014
8563ac6
0.5.5
nolanlawson Aug 6, 2014
cfb5ce2
(#88) - make _changes actually continuous
nolanlawson Aug 6, 2014
3b5e57a
0.5.6
nolanlawson Aug 7, 2014
01183ff
(pouchdb/pouchdb#2545) - use bulk doc error if available
calvinmetcalf Aug 8, 2014
b1f6a03
(#90) - remove console.log
nolanlawson Aug 8, 2014
eddbd58
0.5.7
nolanlawson Aug 10, 2014
e2d997e
(#92) - clean up multipart parsing
nolanlawson Aug 10, 2014
e5b3ed9
(#79) - fix deprecation warning for host -> hostname
nolanlawson Jul 27, 2014
2a72f10
(#95) - implement longpoll changes
nolanlawson Aug 13, 2014
bb55557
(#94) - add compression
nolanlawson Aug 12, 2014
c394a7c
0.5.8
nolanlawson Aug 13, 2014
2f70d67
make CI build faster
PeterDaveHello Aug 14, 2014
18f6a0d
(#99) - "implement" _ensure_full_commit
nolanlawson Aug 24, 2014
3f4eb63
0.5.9
nolanlawson Aug 26, 2014
f7f6cb6
(pouchdb/pouchdb#2543) - increase JSON parse size
nolanlawson Sep 5, 2014
6f11745
0.5.10
nolanlawson Sep 6, 2014
63d3ee7
(#75) - Attachment support for design docs.
marten-de-vries Sep 4, 2014
1d75b18
(#103) - Adds basic authentication & configuration support.
marten-de-vries Sep 2, 2014
5de5fd4
(#108) - Adds _replicator database
marten-de-vries Sep 10, 2014
55d976a
0.6.0
nolanlawson Sep 13, 2014
e5b7ede
(#109) - Adds /_security support.
marten-de-vries Sep 16, 2014
b1f8448
(#110) - Documents 'non-PouchDB' functionality.
marten-de-vries Sep 17, 2014
a4234f3
(#112) - update Fauxton
nolanlawson Sep 21, 2014
f4386bd
(#112) - add fonts/, since fauxton has that now
nolanlawson Sep 21, 2014
4b0ef40
(#111) - Fixes bugs discovered by couchdb-harness
marten-de-vries Sep 20, 2014
3f1f190
0.7.0
nolanlawson Sep 24, 2014
b004fdc
(#113) - Fix regression in POST /_session
marten-de-vries Sep 24, 2014
5fc0b3c
0.7.1
nolanlawson Sep 24, 2014
c808946
(#115) - Remove no longer necessary code
marten-de-vries Oct 6, 2014
7c43a08
(#122) - Don't claim req.session
marten-de-vries Oct 26, 2014
50bd484
0.7.2
marten-de-vries Oct 29, 2014
d6f9b36
(#16) - Move url registration into init scope
daleharvey Nov 20, 2014
fecee52
(pouchdb/pouchdb#3056) - _changes with POST
nolanlawson Nov 30, 2014
ddac517
(#130) - Update sendfile to sendFile
yaronyg Nov 26, 2014
73fbfe2
0.7.3
nolanlawson Dec 2, 2014
4063d79
(#132) - Get rid of 'dbs' by using allDbs() more
marten-de-vries Nov 29, 2014
43742fd
(#16) - Split out routes into separate files
marten-de-vries Nov 30, 2014
64c47d0
(#138) - update allDbs dependency
nolanlawson Dec 7, 2014
2181ddb
0.7.4
nolanlawson Dec 7, 2014
252c18b
(#137) - add disk_size to the db info route
marten-de-vries Dec 5, 2014
cbec74c
(#136) - Add vhosts support
marten-de-vries Dec 4, 2014
70f312b
(#127) - Prevent config file corruption on crash
marten-de-vries Dec 4, 2014
019bac6
0.8.0
nolanlawson Dec 7, 2014
254d507
(#139) - Use mountpoint as rewrite base url
marten-de-vries Dec 10, 2014
7aeadf1
0.8.1
marten-de-vries Dec 10, 2014
526b9ea
(#128) - Add test-pouchdb & test-couchdb
marten-de-vries Dec 10, 2014
837a114
(pouchdb/pouchdb-server#76) - Change express dependency version
marten-de-vries Dec 12, 2014
a0c13c3
(#146) - add travis badge
nolanlawson Dec 14, 2014
7518a50
(#143) - Add express-pouchdb specific test suite
marten-de-vries Dec 12, 2014
e2daa96
(#145) - remove phantom/firefox from allowed failures
nolanlawson Dec 14, 2014
83b7d02
(#148) - Increase mocha timeout for Travis
marten-de-vries Dec 15, 2014
9f94735
(pouchdb/pouchdb-server#72) - Reintroduce app.couchConfig
marten-de-vries Dec 13, 2014
2e8a97c
(pouchdb/pouchb-server#72) - change PouchDB on the fly
marten-de-vries Dec 17, 2014
b41acdb
0.9.0
nolanlawson Dec 18, 2014
a6887fd
(#150) - remove express peer dependency
nolanlawson Dec 18, 2014
6fca4d9
0.9.1
daleharvey Dec 18, 2014
0fb32f1
(#147) - Implements logging & /_log
marten-de-vries Dec 14, 2014
99e68dd
(#153) - improved error handling
rudasn Dec 18, 2014
47bd5b0
0.10.0
marten-de-vries Dec 23, 2014
fc5e5c8
(#159) - handle json body parser errors
marten-de-vries Jan 2, 2015
3920710
(#122) - Modular express-pouchdb and mode support
marten-de-vries Dec 19, 2014
3d5cfbc
(#157) - Fix config data model & api
marten-de-vries Dec 24, 2014
b42d590
(pouchdb/pouchdb-server#67) - Support http-pouchdb objects
marten-de-vries Dec 20, 2014
29c016b
(#118,#119,#120,#121) - Update documentation
marten-de-vries Jan 3, 2015
6e6f7cf
0.11.0
nolanlawson Jan 5, 2015
23c5afd
(#163) - vendor and uuid at root
marten-de-vries Jan 3, 2015
a5403af
(#165) - adding view cleanup route and method invocation
mshick Jan 5, 2015
a516d3e
0.12.0
nolanlawson Jan 5, 2015
c8c27e1
(#165) - Move /_view_cleanup into its own file
marten-de-vries Jan 5, 2015
e09d9c4
0.13.0
nolanlawson Jan 5, 2015
e4d93f3
(#168) - Make JSON body parser limit configurable
marten-de-vries Jan 9, 2015
0bdc5e0
(#169) - Some couchdb-harness fixes
marten-de-vries Jan 7, 2015
fd604db
(#172) - Attachment couchdb-harness fixes
marten-de-vries Jan 8, 2015
7fb0762
(#182) - Upgrade pouchdb-server
nolanlawson Jan 11, 2015
a7e514f
(#173) - Config couchdb-harness fixes
marten-de-vries Jan 8, 2015
03d8210
(#174) - Uuids couchdb-harness fixes
marten-de-vries Jan 8, 2015
8439982
(#175) - Rewrite couchdb-harness fixes
marten-de-vries Jan 9, 2015
5111b3e
(#176) - Bulk docs couchdb-harness fixes
marten-de-vries Jan 9, 2015
0325f8b
(#177) - Changes couchdb-harness fixes
marten-de-vries Jan 9, 2015
541683f
(#178) - Compact couchdb-harness fixes
marten-de-vries Jan 9, 2015
26e8ee3
(#187) - Show/list/update couchdb-harness fixes
marten-de-vries Jan 13, 2015
ca4ea3c
0.13.1
nolanlawson Jan 14, 2015
d3554f7
(pouchdb/couchdb-harness#19) - auth fixes
marten-de-vries Jan 15, 2015
d0b1c0b
(#164) - test minimumForPouchDB mode
marten-de-vries Jan 8, 2015
a83998f
(#191) - Split out temp views in a separate file
marten-de-vries Jan 15, 2015
2e553c8
(#197) - pouchdb-find support
marten-de-vries Jan 27, 2015
f61e15c
0.14.0
nolanlawson Jan 27, 2015
3391319
(#206) - Do not create empty config files
marten-de-vries Apr 29, 2015
d64a92f
(pouchdb/pouchdb#3872) - fix getAttachment with rev
nolanlawson May 24, 2015
53a81f2
0.14.1
nolanlawson May 24, 2015
581a453
(#2832) - don't store 'follows' key for multipart
nolanlawson May 25, 2015
df363df
0.14.2
nolanlawson May 25, 2015
4016892
Add post handler to views route
robotlovesyou Jun 14, 2015
7299e10
(#217) test db existence with decoded name
tyler-johnson Jul 14, 2015
ee7677a
0.15.0
nolanlawson Jul 18, 2015
de44f2c
(pouchdb/pouchdb#4052) - Add Apache license
nolanlawson Jul 18, 2015
1cbc753
(#222) - update jshint
nolanlawson Jul 18, 2015
c0849dd
(pouchdb/pouchdb-server#108) - fix compact()
nolanlawson Jul 19, 2015
f8038b0
(#225) - actually test
nolanlawson Jul 19, 2015
2f6280d
(#231) - remove PouchDB.destroy usage
nolanlawson Aug 9, 2015
9c21d2d
(#213) - allow HEAD requests to /:db/_all_docs
janl May 27, 2015
735526c
(#196) - implement _bulk_get
nolanlawson May 2, 2015
a8c2419
0.16.0
nolanlawson Aug 16, 2015
b017aaa
(#238) - parallelize getAttachment()
nolanlawson Aug 16, 2015
337a8ec
(#200) - allow uploading attachments
nolanlawson Aug 16, 2015
a4a73e9
0.16.1
nolanlawson Aug 19, 2015
841f75f
(#218) - add db name to userCtx
tyler-johnson Jul 14, 2015
9a5c09a
0.16.2
nolanlawson Aug 23, 2015
da18b2a
(#244) - add _membership and _cluster_setup APIs
nolanlawson Aug 23, 2015
83bf081
(#244) - move cluster rewrite in its own file
marten-de-vries Aug 24, 2015
f176580
(#242) - Update fauxton to 1.0.3
NickColley Aug 23, 2015
874bbce
0.17.0
nolanlawson Aug 24, 2015
c8ee1f2
(#252) - fix jshint
nolanlawson Sep 5, 2015
3fb9af1
(#231, #250) - Re-introduce PouchDB.destroy()
marten-de-vries Sep 5, 2015
ecb9511
(pouchdb/pouchdb-server#117) - set json type
nolanlawson Sep 6, 2015
409b712
0.17.1
nolanlawson Sep 7, 2015
04c7693
(pouchdb/pouchdb-server#117) - always set content-type
nolanlawson Sep 7, 2015
6684d30
0.17.2
nolanlawson Sep 8, 2015
00e836f
(#257) - Redirect /_utils/ to /_utils
NickColley Sep 9, 2015
1808abd
(#255) - switch to 0.12 as default
nolanlawson Sep 12, 2015
87c86a9
(#240) - allow GETing a user's document as the user
christophwitzko Sep 18, 2015
4eda703
update pouchdb-server version
nolanlawson Oct 4, 2015
b48a0b1
0.17.3
nolanlawson Oct 4, 2015
c730133
1.0.0
nolanlawson Oct 6, 2015
f1cc6bf
use latest firefox in travis
nolanlawson Oct 6, 2015
959d6b3
pin travis to firefox 41
nolanlawson Oct 6, 2015
2e1fe41
(#265) - return immediately when using opts.continuous
nolanlawson Oct 18, 2015
7e04d46
1.0.1
nolanlawson Oct 25, 2015
f4851a1
(#269) - Fixed a typo in the docs
jerem Nov 11, 2015
57aff0b
(#276) - install pouchdb from git for tests
nolanlawson Jan 24, 2016
78cc723
(pouchdb/pouchdb#4669) - fix ETags for GET /db/doc
nolanlawson Jan 24, 2016
b743fae
(#279) - make test logging less verbose
nolanlawson Jan 25, 2016
0717d80
(#281) - remove Etag logic
nolanlawson Jan 30, 2016
5415eca
1.0.2
nolanlawson Jan 30, 2016
feec202
trim down npm tgz size
nolanlawson Jan 30, 2016
96a0422
(#285) - Support lists with views from other DDocs
mroeder Feb 2, 2016
ef495aa
(#268) - pouchdb-auth update
marten-de-vries Dec 25, 2015
80ed5cf
1.0.3
nolanlawson Mar 4, 2016
fb763f1
(#301) - massive greenkeeper update, pin deps
nolanlawson Mar 24, 2016
9af7efa
(#301) - disable phantomjs for now
nolanlawson Mar 29, 2016
f88c6b1
(#305) - chore(package): update fs-extra to version 0.27.0
greenkeeperio-bot Apr 16, 2016
8854af4
(#304) - Document that pouchdb+express modules be installed
madarche Apr 17, 2016
d0307b4
(#306) - chore(package): update fs-extra to version 0.28.0
greenkeeperio-bot Apr 18, 2016
459d6d2
(#307) - chore(package): update jshint to version 2.9.2
greenkeeperio-bot Apr 19, 2016
8c08fcd
chore(package): update pouchdb-auth to version 2.1.0 (#332)
greenkeeperio-bot Jun 8, 2016
17e7465
Update pouchdb-express for PouchDB 5.4 (#336)
garrensmith Jun 15, 2016
74adcc3
1.0.4
garrensmith Jun 15, 2016
4d22dd4
fix test setup (#342)
garrensmith Jun 28, 2016
3fb04f2
1.0.5
garrensmith Jun 28, 2016
459e185
update all old dependencies (#349)
garrensmith Jun 29, 2016
48f6942
1.0.6
garrensmith Jul 21, 2016
76f815b
(#354) - chore(package): update supertest to version 2.0.0
greenkeeperio-bot Aug 7, 2016
6f72764
(#352) - update node-uuid to 1.4.7 for security fix
mohlsen Aug 7, 2016
efe5542
(#359) - chore(package): update pouchdb-auth to version 2.1.1
greenkeeperio-bot Aug 8, 2016
007c40b
1.0.7
nolanlawson Aug 8, 2016
3bdd997
(#374) update to PouchDB@6 (#375)
gr2m Sep 11, 2016
bcdc0b7
(rebased on PouchDB@6) Fix "req.query.hasOwnProperty is not a functio…
gr2m Sep 11, 2016
67a2d48
(#377) - remove incorret dbname encoding (BREAKING)
gr2m Sep 11, 2016
e7e5163
chore(package): update memdown to version 1.2.1 (#373)
greenkeeperio-bot Sep 11, 2016
286c6de
chore(package): update pouchdb-find to version 0.10.3 (#351)
greenkeeperio-bot Sep 11, 2016
5cef82d
(#378) - remove incorrect dbname encoding (part 2)
gr2m Sep 12, 2016
2c92df8
(#380) - add changelog note to README
gr2m Sep 12, 2016
9b8cc6b
2.0.0
gr2m Sep 12, 2016
a482e4a
(#388) - chore(package): update mocha to version 3.1.2
greenkeeperio-bot Oct 31, 2016
ea60789
(#372) - add inMemoryConfig option
tyler-johnson Oct 31, 2016
f8019c4
(#372) - update README
nolanlawson Oct 31, 2016
67f7b26
2.1.0
nolanlawson Oct 31, 2016
4d66be5
(#398) - avoid stuck changes
gr2m Nov 30, 2016
8092e1c
(#395) - Update all deps
nolanlawson Dec 2, 2016
70dafbd
2.1.1
nolanlawson Dec 2, 2016
7b86362
(#406) node-uuid -> uuid (#406)
nolanlawson Dec 20, 2016
7f76bee
(#410) - simplify and modernize travis config (#410)
nolanlawson Dec 20, 2016
2d5811e
(#407) - remove pouchdb-node from deps (#407)
nolanlawson Dec 20, 2016
7e0eb9d
(#405) - support latest=true (#409)
nolanlawson Dec 21, 2016
0f2365b
2.1.2
nolanlawson Dec 21, 2016
7c1e6f9
(#18) - use native Promises, fix Promise creation (#411)
nolanlawson Dec 21, 2016
3e6e9c1
(#412) - correctly escape filenames
nolanlawson Dec 21, 2016
8ebbd28
2.1.3
nolanlawson Dec 21, 2016
6b1f3d5
test specific version of pouchdb for now
nolanlawson Dec 22, 2016
f10e65a
add travis_retry to .travis.yml
nolanlawson Dec 23, 2016
6857cc7
(#415) - Update pouchdb-server to version 2.0.1 🚀
greenkeeperio-bot Dec 23, 2016
be48688
chore(package): update pouchdb-promise to version 6.1.1
greenkeeperio-bot Jan 5, 2017
0500e59
(#417) - include id in all bulk_docs results (#417)
KlausTrainer Jan 11, 2017
7ac1c49
2.1.4
nolanlawson Jan 11, 2017
a97d001
add logPath config (#419)
TheoTx Jan 20, 2017
d1af0a2
2.2.0
nolanlawson Jan 20, 2017
78220b3
(#418) - chore(package): update fs-extra to version 2.0.0
greenkeeperio-bot Feb 7, 2017
76f8ed9
(#420) - chore(package): update multiparty to version 4.1.3
greenkeeperio-bot Feb 7, 2017
25280ed
(#423) - chore(package): update supertest to version 3.0.0
greenkeeperio-bot Feb 7, 2017
c558d06
(#425) - chore(package): update pouchdb-promise to version 6.1.2
greenkeeperio-bot Feb 7, 2017
5af64e6
(#424) - fix and test mapreduce, use vm instead of eval
nolanlawson Feb 8, 2017
6827e67
2.2.1
nolanlawson Feb 8, 2017
17cb28a
(#398) - reuse PouchDB object between calls
nolanlawson Feb 11, 2017
9d8e747
2.2.2
nolanlawson Feb 11, 2017
ad6bfe4
(#427) - update Fauxton by switching to pouchdb-fauxton package
nolanlawson Feb 15, 2017
092ec00
use eslint instead of jshint
garrensmith Feb 15, 2017
fab2e98
2.2.3
nolanlawson Feb 15, 2017
adea843
use require.resolve() for exact pouchdb-fauxton path
nolanlawson Feb 15, 2017
b1c6c35
2.2.4
nolanlawson Feb 15, 2017
36cd939
setup for pouchdb-server
garrensmith Feb 16, 2017
68c2369
Add 'packages/node_modules/express-pouchdb/' from commit 'b1c6c3567f6…
garrensmith Feb 16, 2017
82f65d8
add express-pouchdb
garrensmith Feb 16, 2017
cc80fd2
remove empty command
garrensmith Feb 16, 2017
c83b503
fix eslint
nolanlawson Feb 16, 2017
f1151dc
add mapreduce tests
nolanlawson Feb 16, 2017
ddf169b
fixing tests
garrensmith Feb 17, 2017
73f52fa
use latest pouchdb version
garrensmith Feb 17, 2017
7e8b5da
add pouchdb-server
garrensmith Feb 17, 2017
1ecb911
travis debug
garrensmith Feb 17, 2017
20af30e
logging on test script
garrensmith Feb 17, 2017
12ab2c1
more logging
garrensmith Feb 17, 2017
039e4a8
travis again
garrensmith Feb 17, 2017
3fc5556
more
garrensmith Feb 17, 2017
a2f6e66
remove pouchdb-tests directory
garrensmith Feb 17, 2017
ec09f05
link express-pouchdb and update readmes
garrensmith Feb 17, 2017
db3796b
set pre-release version
garrensmith Feb 17, 2017
753d7fc
cleanup structure, implement release script
nolanlawson Feb 18, 2017
600b3f3
fix bin file
nolanlawson Feb 18, 2017
8b7b73d
update READMEs, CONTRIBUTING, and package.jsons
nolanlawson Feb 18, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
node_modules/
/node_modules
testdb_*
test_*
_pouch_*
Expand All @@ -12,3 +12,4 @@ config.json
log.txt
/pouchdb
/tmp
pouchdb-tests
6 changes: 6 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ env:
- secure: "MiufQQKR/EBoS7kcau/I7oYenVilysEqwx37zdgLEKlEUe3SxVOe31uLZv/bhfLNZiRuLAfmIOZmhLGnhMf0LaBzR2yC5qhBxrVHcAiTuS3q6zxpzEf02jnu+hACvj1kJJEPjpOLpEVx7ghWL4McEO0qLbdtSbQlm2IkOX1ONg0="

matrix:
- COMMAND=unit-tests
- COMMAND=test-express-minimum
- CLIENT=node COMMAND=test-pouchdb
- CLIENT=node SERVER_ARGS=--in-memory COMMAND=test-pouchdb
- CLIENT=node SERVER_ARGS=--sqlite COMMAND=test-pouchdb
Expand All @@ -40,6 +42,10 @@ env:
- CLIENT=selenium:firefox COMMAND=test-pouchdb
- CLIENT=selenium:phantomjs COMMAND=test-pouchdb

# Run the mapreduce tests
- COMMAND=test-pouchdb TYPE=mapreduce CLIENT=node
- COMMAND=test-pouchdb TYPE=mapreduce CLIENT=selenium:firefox

# Test against the couchdb harness
- COMMAND=test-couchdb

Expand Down
16 changes: 7 additions & 9 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
Want to help me make this thing awesome? Great! Here's how you should get started.

1. First, make sure that the bugfix or feature you're looking to implement isn't better fit for [express-pouchdb](https://github.com/nick-thompson/express-pouchdb).
2. PouchDB is still developing rapidly. If you need bleeding egde versions, you should first read how to [set up express-pouchdb for local development](https://github.com/nick-thompson/express-pouchdb#contributing). (Make sure that, afterwards, you `npm link` express-pouchdb).
3. Go ahead and fork **pouchdb-server**, clone it to your machine.
4. Now you'll want to, from the root of **pouchdb-server**, `npm link express-pouchdb`.
5. `npm install` the rest of the dependencies.
# Contributing

Please make your changes on a separate branch whose name reflects your changes, push them to your fork, and open a pull request!
Want to help me make this thing awesome? Great! Here's how you should get started.

For commit message style guidelines, please refer to [PouchDB CONTRIBUTING.md](https://github.com/pouchdb/pouchdb/blob/master/CONTRIBUTING.md).
1. First, check whether your bugfix must be in `express-pouchdb` or `pouchdb-server`.
2. Make your changes on a separate branch whose name reflects your changes,
3. Run all tests to make sure your changes do not break anything
4. To create a PR, push your changes to your fork, and open a pull request!
5. For a PR, follow the commit message style guidelines in[PouchDB CONTRIBUTING.md](https://github.com/pouchdb/pouchdb/blob/master/CONTRIBUTING.md).
189 changes: 9 additions & 180 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,195 +1,24 @@
# pouchdb-server
# pouchdb-server monorepo
[![Build Status](https://travis-ci.org/pouchdb/pouchdb-server.svg)](https://travis-ci.org/pouchdb/pouchdb-server)

> A standalone REST interface server for PouchDB.
This is the monorepo for PouchDB-Server and Express-PouchDB. It follows the same format as the (PouchDB monorepo](https://github.com/pouchdb/pouchdb). This follows the [alle](https://github.com/boennemann/alle) monorepo setup. You can read more about monorepo's [here](https://github.com/babel/babel/blob/master/doc/design/monorepo.md)) and (here)[https://gist.github.com/nolanlawson/457cdb309c9ec5b39f0d420266a9faa4].

## Introduction
Getting Help
------------

**pouchdb-server** is a simple Node.js server that presents a simple REST API, which mimics that of [CouchDB](http://couchdb.apache.org),
on top of [PouchDB](http://pouchdb.com). Among other things, this allows users to replicate IndexedDB stores to LevelDB, or to
spin up a quick and dirty drop-in replacement for CouchDB to get things moving quickly.
The PouchDB community is active [on Freenode IRC](https://www.irccloud.com/invite?channel=pouchdb&hostname=irc.freenode.net&port=6697&ssl=1), [Slack](http://slack.pouchdb.com),in [the Google Groups mailing list](https://groups.google.com/forum/#!forum/pouchdb), and [on StackOverflow](http://stackoverflow.com/questions/tagged/pouchdb). Or you can [tweet @pouchdb](http://twitter.com/pouchdb)!

## Installation
If you think you've found a bug in PouchDB, please write a reproducible test case and file [a Github issue](https://github.com/pouchdb/pouchdb/issues). We recommend [bl.ocks.org](http://bl.ocks.org/) for code snippets, because some iframe-based services like JSFiddle and JSBin do not support IndexedDB in all browsers. You can start with [this template](https://gist.github.com/nolanlawson/816f138a51b86785d3e6).

```bash
$ npm install -g pouchdb-server
```

## Usage

```

Usage: pouchdb-server [options]

Options:
-p, --port Port on which to run the server. (Defaults to
/_config/httpd/port which defaults to 5984).
-d, --dir Where to store database files. (Defaults to
/_config/couchdb/database_dir which defaults to the
current directory).
-c, --config The location of the configuration file that backs
/_config. (Defaults to ./config.json).
-o, --host The address to bind the server to. (Defaults to
/_config/httpd/bind_address which defaults to
127.0.0.1).
-m, --in-memory Use a pure in-memory database which will be deleted
upon restart. (Defaults to
/_config/pouchdb_server/in_memory which defaults to
false).
--sqlite Use PouchDB over SQLite instead of LevelDOWN.
(Defaults to /_config/pouchdb_server/sqlite which
defaults to false).
-r, --proxy Proxy requests to the specified host. Include a
trailing '/'. (Defaults to
/_config/pouchdb_server/proxy which defaults to
undefined).
-n, --no-stdout-logs Stops the log file from also being written to stdout.
(Defaults to /_config/pouchdb_server/no-stdout-logs
which defaults to false).
--no-color Disable coloring of logging output.
--level-backend Advanced - Alternate LevelDOWN backend (e.g. memdown,
riakdown, redisdown). Note that you'll need to
manually npm install it first. (Defaults to
/_config/pouchdb_server/level_backend which defaults
to undefined).
--level-prefix Advanced - Prefix to use for all database names,
useful for URLs in alternate backends, e.g.
riak://localhost:8087/ for riakdown. (Defaults to
/_config/pouchdb_server/level_prefix which defaults
to undefined).

Examples:

pouchdb-server --level-backend riakdown --level-prefix riak://localhost:8087
Starts up a pouchdb-server that talks to Riak.
Requires: npm install riakdown

pouchdb-server --level-backend redisdown
Starts up a pouchdb-server that talks to Redis, on localhost:6379.
Requires: npm install redisdown

pouchdb-server --level-backend sqldown --level-prefix /tmp/
Starts up a pouchdb-server using SQLite, with files stored in /tmp/.
Requires: npm install sqldown sqlite3
```

A simple example might be,

```bash
$ pouchdb-server -p 15984
pouchdb-server listening on port 15984.
```

Alternatively, **pouchdb-server**'s functionality can be mounted into other Express web apps. For more information
on that, check out [express-pouchdb](https://github.com/nick-thompson/express-pouchdb).

## Fauxton

**pouchdb-server** currently supports an experimental version of CouchDB's [Fauxton](http://docs.couchdb.org/en/latest/fauxton/index.html). Fauxton, the successor to CouchDB's original Futon, is a simple web UI for interacting with your databases. With your server running, navigate to `/_utils` to check it out!

## Configuration

By default, you can configure pouchdb-server using a `config.json` file, which is
typically expected at the root of wherever you run pouchdb-server, but may be specified with the `--config` option.

Below are some examples of `config.json` options:

### log.level

To change the log output level, you can create a `config.json` file containing e.g.:

```js
{
"log": {
"level": "none"
}
}

```

The available values are `debug`, `info`, `warning`, `error`, and `none`. The default
is `info`.

### log.file

To choose the file where logs are written, you can create a `config.json` file containing e.g.:

```js
{
"log": {
"file": "/path/to/log.txt"
}
}

```

By default, logs are written to `./log.txt`.

## Automatic port configuration

Due to conventions set by Heroku and others, if you have a `PORT` environment variable,
`pouchdb-server` will pick up on that and use it instead of `5984` as the default.

```bash
export PORT=3000
pouchdb-server # will run on port 3000
```

## Testing

One of the primary benefits of **pouchdb-server** is the ability to run PouchDB's Node test suite against itself. To do that, you can simply,

```bash
$ npm run test-pouchdb
```

Whatever args you provide as `SERVER_ARGS` will be passed to `pouchdb-server` itself:

```bash
$ SERVER_ARGS='--in-memory' npm run test-pouchdb
```

Or to test in Firefox (IndexedDB):

```bash
$ CLIENT=selenium:firefox npm run test-pouchdb
```

Or to test in PhantomJS (WebSQL):

```bash
$ CLIENT=selenium:phantomjs ES5_SHIM=true npm run test-pouchdb
```

Additionally, we've started porting CouchDB's JavaScript test harness to
[a simple Node module](https://github.com/nick-thompson/couchdb-harness), which can be run against PouchDB via **pouchdb-server**.

```bash
$ npm run test-couchdb
```

## Contributing

Want to help me make this thing awesome? Great! Here's how you should get started.

1. First, make sure that the bugfix or feature you're looking to implement isn't better fit for [express-pouchdb](https://github.com/nick-thompson/express-pouchdb).
2. PouchDB is still developing rapidly. If you need bleeding egde versions, you should first read how to [set up express-pouchdb for local development](https://github.com/nick-thompson/express-pouchdb#contributing). (Make sure that, afterwards, you `npm link` express-pouchdb).
3. Go ahead and fork **pouchdb-server**, clone it to your machine.
4. Now you'll want to, from the root of **pouchdb-server**, `npm link express-pouchdb`.
5. `npm install` the rest of the dependencies.

Please make your changes on a separate branch whose name reflects your changes, push them to your fork, and open a pull request!

For commit message style guidelines, please refer to [PouchDB CONTRIBUTING.md](https://github.com/pouchdb/pouchdb/blob/master/CONTRIBUTING.md).
See the CONTRIBUTING.md file for how to get involved
Copy link
Contributor

@gr2m gr2m Feb 18, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe link the CONTRIBUTING.md file?
[CONTRIBUTING.md](https://github.com/pouchdb/pouchdb-server/blob/master/CONTRIBUTING.md)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍


## Contributors

[These people](https://github.com/pouchdb/express-pouchdb/graphs/contributors) made **pouchdb-server** into what it is today!

## Changelog

`pouchdb-server` follows [semantic versioning](http://semver.org/). To see a changelog with all releases since v2.0.0, check out the [Github releases page](https://github.com/pouchdb/pouchdb-server/releases).
[These people](https://github.com/pouchdb/pouchdb-server/graphs/contributors) made **pouchdb-server** into what it is today!

## License

Apache License Version 2.0. See [the LICENSE file](https://github.com/pouchdb/pouchdb-server/blob/master/LICENSE) for more information.
The MIT License. See [the LICENSE file](https://github.com/pouchdb/pouchdb-server/blob/master/LICENSE) for more information.
8 changes: 8 additions & 0 deletions bin/express-pouchdb-minimum-for-pouchdb.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
'use strict';

var PouchDB = require('pouchdb');

var app = require('../packages/node_modules/express-pouchdb')(PouchDB, {
mode: 'minimumForPouchDB'
});
app.listen(6984);
3 changes: 0 additions & 3 deletions bin/pouchdb-server

This file was deleted.

25 changes: 25 additions & 0 deletions bin/set-version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/usr/bin/env node

'use strict';

// Set the version of all modules, since they're versioned together.
// Usage: npm run set-version -- [version]
// e.g. npm run set-version -- 1.2.3

var version = process.argv[process.argv.length - 1];
var fs = require('fs');
var path = require('path');

var packages = fs.readdirSync('packages/node_modules');

packages.map(function (pkg) {
return path.resolve(__dirname, '../packages/node_modules', pkg, 'package.json');
}).concat([
path.resolve(__dirname, '../package.json')
]).forEach(function (jsonFile) {
var json = JSON.parse(fs.readFileSync(jsonFile), 'utf-8');
json.version = version;
fs.writeFileSync(jsonFile, JSON.stringify(json, null, ' ') + '\n', 'utf-8');
});

console.log('done');
2 changes: 1 addition & 1 deletion bin/test-couchdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# couchdb-harness depends on the fact that /_config/httpd/port equals
# the port on which pouchdb-server is running.
echo '{"httpd": {"port": 6984}}' > config.json
node bin/pouchdb-server &
./packages/node_modules/pouchdb-server/bin/pouchdb-server &
export POUCHDB_SERVER_PID=$!
./node_modules/couchdb-harness/bin/couchdb-harness -p 6984

Expand Down
14 changes: 14 additions & 0 deletions bin/test-express-minimum.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#!/bin/bash

node ./bin/express-pouchdb-minimum-for-pouchdb.js &
POUCHDB_SERVER_PID=$!

cd ./pouchdb-tests

COUCH_HOST=http://127.0.0.1:6984 TIMEOUT=120000 npm run test-node

EXIT_STATUS=$?
if [[ ! -z $POUCHDB_SERVER_PID ]]; then
kill $POUCHDB_SERVER_PID
fi
exit $EXIT_STATUS
12 changes: 4 additions & 8 deletions bin/test-pouchdb.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#!/bin/bash

rm -fr tmp
mkdir -p tmp
cd tmp

../bin/pouchdb-server -n -p 6984 $SERVER_ARGS &
./packages/node_modules/pouchdb-server/bin/pouchdb-server -n -p 6984 $SERVER_ARGS &
POUCHDB_SERVER_PID=$!

cd ../pouchdb
cd ./pouchdb-tests

COUCH_HOST=http://127.0.0.1:6984 TIMEOUT=120000 npm run test-node
COUCH_HOST=http://localhost:6984 TIMEOUT=120000 npm run test-node

EXIT_STATUS=$?
if [[ ! -z $POUCHDB_SERVER_PID ]]; then
kill $POUCHDB_SERVER_PID
fi
exit $EXIT_STATUS
exit $EXIT_STATUS
26 changes: 11 additions & 15 deletions bin/test-setup.sh
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
#!/bin/bash

# install pouchdb from git rather than npm,
# so we can run its own tests
# also this branch may change as we update pouchdb
# versions because we can't necessarily test against
# the master tests since we use the version of pouchdb
# from npm
rm -rf pouchdb
git clone --single-branch \
--branch master \
--depth 300 \
https://github.com/pouchdb/pouchdb.git pouchdb
cd pouchdb
# using a specific commit for now rather than master
git reset --hard 587ba8f4df4b6fcf32a8fd015f8c7ebadd8f280d
DIRECTORY='pouchdb-tests'

if [ ! -d "$DIRECTORY" ]; then
# Control will enter here if $DIRECTORY exists.
git clone --single-branch --branch master \
https://github.com/pouchdb/pouchdb.git ${DIRECTORY}
fi

cd pouchdb-tests
npm install
cd -

cd ..
Loading