├── .codeclimate.yml ├── .eslintrc ├── .gitignore ├── .istanbul.yml ├── .publishrc ├── Apache_License ├── CHANGELOG.md ├── LICENSE ├── README.md ├── bin └── main.js ├── lib ├── actions │ ├── init.js │ └── start.js ├── db_connectors │ └── NeDB │ │ ├── changes_table.js │ │ ├── db.js │ │ ├── table.js │ │ └── uncommitted_changes_table.js ├── log_handlers.js ├── server │ ├── poll │ │ ├── sender_functions.js │ │ └── server.js │ ├── print_interfaces.js │ ├── read_certificates.js │ ├── server.js │ └── socket │ │ ├── handlers.js │ │ └── server.js └── sync │ ├── apply_client_changes.js │ ├── apply_modifications.js │ ├── combine_create_and_update.js │ ├── combine_update_and_update.js │ ├── deep_clone.js │ ├── get_server_changes.js │ ├── handle_client_changes.js │ ├── init_handlers.js │ ├── poll_handler.js │ ├── reduce_changes.js │ ├── resolve_conflicts.js │ ├── set_key_path.js │ ├── socket_handler.js │ └── types.js ├── package.json ├── samples ├── ajax │ ├── index.html │ └── index.js └── socket │ ├── index.html │ └── index.js └── test ├── integration └── sync_and_db │ ├── apply_client_changes.spec.js │ ├── poll │ ├── client_identity.spec.js │ ├── initial_synchronization.spec.js │ ├── partial_client_sync.spec.js │ ├── partial_server_sync.spec.js │ └── subsequent_synchronization.spec.js │ └── socket │ ├── client_changes.spec.js │ ├── client_identity.spec.js │ ├── connection_closed.spec.js │ ├── partial_client_sync.spec.js │ ├── partial_server_sync.spec.js │ └── subscribe.spec.js └── unit ├── db_connectors └── changes_table.spec.js └── sync ├── apply_modifications.spec.js ├── combine_create_and_update.spec.js ├── combine_update_and_update.spec.js ├── reduce_changes.spec.js ├── resolve_conflicts.spec.js └── set_key_path.spec.js /.codeclimate.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/.codeclimate.yml -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/.eslintrc -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | /node_modules 2 | /.idea 3 | *.log 4 | /coverage 5 | -------------------------------------------------------------------------------- /.istanbul.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/.istanbul.yml -------------------------------------------------------------------------------- /.publishrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/.publishrc -------------------------------------------------------------------------------- /Apache_License: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/Apache_License -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/README.md -------------------------------------------------------------------------------- /bin/main.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/bin/main.js -------------------------------------------------------------------------------- /lib/actions/init.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/actions/init.js -------------------------------------------------------------------------------- /lib/actions/start.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/actions/start.js -------------------------------------------------------------------------------- /lib/db_connectors/NeDB/changes_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/db_connectors/NeDB/changes_table.js -------------------------------------------------------------------------------- /lib/db_connectors/NeDB/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/db_connectors/NeDB/db.js -------------------------------------------------------------------------------- /lib/db_connectors/NeDB/table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/db_connectors/NeDB/table.js -------------------------------------------------------------------------------- /lib/db_connectors/NeDB/uncommitted_changes_table.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/db_connectors/NeDB/uncommitted_changes_table.js -------------------------------------------------------------------------------- /lib/log_handlers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/log_handlers.js -------------------------------------------------------------------------------- /lib/server/poll/sender_functions.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/poll/sender_functions.js -------------------------------------------------------------------------------- /lib/server/poll/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/poll/server.js -------------------------------------------------------------------------------- /lib/server/print_interfaces.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/print_interfaces.js -------------------------------------------------------------------------------- /lib/server/read_certificates.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/read_certificates.js -------------------------------------------------------------------------------- /lib/server/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/server.js -------------------------------------------------------------------------------- /lib/server/socket/handlers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/socket/handlers.js -------------------------------------------------------------------------------- /lib/server/socket/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/server/socket/server.js -------------------------------------------------------------------------------- /lib/sync/apply_client_changes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/apply_client_changes.js -------------------------------------------------------------------------------- /lib/sync/apply_modifications.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/apply_modifications.js -------------------------------------------------------------------------------- /lib/sync/combine_create_and_update.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/combine_create_and_update.js -------------------------------------------------------------------------------- /lib/sync/combine_update_and_update.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/combine_update_and_update.js -------------------------------------------------------------------------------- /lib/sync/deep_clone.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/deep_clone.js -------------------------------------------------------------------------------- /lib/sync/get_server_changes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/get_server_changes.js -------------------------------------------------------------------------------- /lib/sync/handle_client_changes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/handle_client_changes.js -------------------------------------------------------------------------------- /lib/sync/init_handlers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/init_handlers.js -------------------------------------------------------------------------------- /lib/sync/poll_handler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/poll_handler.js -------------------------------------------------------------------------------- /lib/sync/reduce_changes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/reduce_changes.js -------------------------------------------------------------------------------- /lib/sync/resolve_conflicts.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/resolve_conflicts.js -------------------------------------------------------------------------------- /lib/sync/set_key_path.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/set_key_path.js -------------------------------------------------------------------------------- /lib/sync/socket_handler.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/socket_handler.js -------------------------------------------------------------------------------- /lib/sync/types.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/lib/sync/types.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/package.json -------------------------------------------------------------------------------- /samples/ajax/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/samples/ajax/index.html -------------------------------------------------------------------------------- /samples/ajax/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/samples/ajax/index.js -------------------------------------------------------------------------------- /samples/socket/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/samples/socket/index.html -------------------------------------------------------------------------------- /samples/socket/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/samples/socket/index.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/apply_client_changes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/apply_client_changes.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/poll/client_identity.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/poll/client_identity.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/poll/initial_synchronization.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/poll/initial_synchronization.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/poll/partial_client_sync.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/poll/partial_client_sync.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/poll/partial_server_sync.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/poll/partial_server_sync.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/poll/subsequent_synchronization.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/poll/subsequent_synchronization.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/client_changes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/client_changes.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/client_identity.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/client_identity.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/connection_closed.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/connection_closed.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/partial_client_sync.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/partial_client_sync.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/partial_server_sync.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/partial_server_sync.spec.js -------------------------------------------------------------------------------- /test/integration/sync_and_db/socket/subscribe.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/integration/sync_and_db/socket/subscribe.spec.js -------------------------------------------------------------------------------- /test/unit/db_connectors/changes_table.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/db_connectors/changes_table.spec.js -------------------------------------------------------------------------------- /test/unit/sync/apply_modifications.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/apply_modifications.spec.js -------------------------------------------------------------------------------- /test/unit/sync/combine_create_and_update.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/combine_create_and_update.spec.js -------------------------------------------------------------------------------- /test/unit/sync/combine_update_and_update.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/combine_update_and_update.spec.js -------------------------------------------------------------------------------- /test/unit/sync/reduce_changes.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/reduce_changes.spec.js -------------------------------------------------------------------------------- /test/unit/sync/resolve_conflicts.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/resolve_conflicts.spec.js -------------------------------------------------------------------------------- /test/unit/sync/set_key_path.spec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/nponiros/sync_server/HEAD/test/unit/sync/set_key_path.spec.js --------------------------------------------------------------------------------