Code Monkey home page Code Monkey logo

aerogear-nodejs-sync-server's Introduction

AeroGear Node.js Sync Server

Build Status Coverage Status

This project in an implementation of Google's Differential Synchonrization by Neil Fraser, that can be used by AeroGear's client libraries.

Project Info

Project Info
License: Apache License, Version 2.0
Build: NPM
Documentation: http://aerogear.org/sync/
Issue tracker: https://issues.jboss.org/browse/AGSYNC
Mailing lists: aerogear-users (subscribe)
aerogear-dev (subscribe)

Building

Installing Build Dependencies

To install the dependencies of the project run the following command:

$ npm install

This will install the versions of the dependencies declared in package.json. This is only required to be done once before building the first time, or if the dependencies in package.json have been updated.

Starting the server

$ npm start

Documentation

For more details about the current release, please consult our documentation.

Resources

Development

Running tests

$ npm test

To run a single test you can use:

$ node test/sync-engine-test.js | node_modules/tap-spec/bin/cmd.js

Debugging

If you are using Node 7.x you can use the --inspect --debug-brk command line options to debug code, for example:

$ node --inspect --debug-brk test/sync-engine-test.js | node_modules/tap-spec/bin/cmd.js
Debugger listening on port 9229.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/remote/serve_file/@60cd6e859b9f557d2312f5bf532f6aec5f284980/inspector.html?experiments=true&v8only=true&ws=localhost:9229/9840e0cc-0603-47e1-a817-14989ab71f57

On previous version of Node, use devtool: devtool test/sync-engine-test.js

Enable debug logging

Logging can be enable by setting the NODE_DEBUG environment variable to the name of the JavaScript source file you want to enable logging for. For example:

$ env NODE_DEBUG=sync-engine node index.js

Running ESlint

$ npm run lint

To automatically fix issues you can use:

$ $ npm run lint -- --fix

Multiple JavaScript files can be added if you are interested in more than one by comma separating them.

If you would like to help develop AeroGear you can join our developer's mailing list, join #aerogear on Freenode, or shout at us on Twitter @aerogears.

Also takes some time and skim the contributor guide

Questions?

Join our user mailing list for any questions or help! We really hope you enjoy app development with AeroGear!

Found a bug?

If you found a bug please create a ticket for us on Jira with some steps to reproduce it.

aerogear-nodejs-sync-server's People

Contributors

danbev avatar lholmquist avatar corinnekrych avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.