Skip to content
forked from medic/couch2pg

Library and app to replicate a CouchDB database to PostgreSQL

License

Notifications You must be signed in to change notification settings

vimemo/couch2pg

 
 

Repository files navigation

couch2pg

Build Status Coverage Status Maintainability License

TODO

  • cli/env

Running tests

docker-compose run tests yarn test

Running tests with coverage

docker-compose run tests yarn test --coverage

Running tests in watch mode

docker-compose run tests yarn test --watchAll

Running tests against local databases instead of docker-compose


export TEST_PG_URL=postgres://localhost:5432
export TEST_COUCH_URL=http://admin:pass@localhost:5984
yarn test --coverage --projects jest-*.config.js

Helpful Commands


docker-compose build/ps/down/rm
docker ps/stop/rm

Notes

  • jest: snapshot testing, mocking support, performant

https://medium.com/airbnb-engineering/unlocking-test-performance-migrating-from-mocha-to-jest-2796c508ec50

https://www.youtube.com/watch?v=NtjyeojAOBs

  • ramda

https://www.codementor.io/michelre/functional-javascript-why-i-prefer-using-ramda-over-lodash-or-underscore-dzovysq11

  • async/await

https://hackernoon.com/6-reasons-why-javascripts-async-await-blows-promises-away-tutorial-c7ec10518dd9

  • es6 classes

https://www.quora.com/What-are-the-benefits-of-using-classes-vs-function-in-ES6

https://stackoverflow.com/questions/36099721/javascript-what-is-the-difference-between-function-and-class

About

Library and app to replicate a CouchDB database to PostgreSQL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%