Coder Social home page Coder Social logo

diff-server's Introduction

Go

Replicache Diff Server

This repository implements the Replicache Diff Server. See Replicache for more information. See the contributing guide there for contributing information.

Build

cd ~/work
git clone https://github.com/rocicorp/diff-server
cd diff-server
go build ./cmd/diffs
go test ./...

Run (Development Mode)

./diffs serve --db=/tmp/diffs-data --enable-inject

curl -d '{"accountID":"sandbox", "clientID":"c1", "baseStateID":"00000000000000000000000000000000", "checksum":"00000000"}' http://localhost:7001/pull

curl -d '{"accountID":"sandbox", "clientID":"c1", "clientViewResponse":{"clientView":{"foo":"bar"},"lastTransactionID":"2"}}' http://localhost:7001/inject

Deploy

now deploy
now deploy --prod

... or just check in a new commit, it will autodeploy.

Release

  1. Tag a new release eg v1.0.3:
git checkout master
git tag v1.0.3
git push origin
  1. Build release binaries:
./tools/release.sh
  1. Find the new tag on https://github.com/rocicorp/diff-server/releases and edit it.
  2. Upload diffs and noms artifacts generated in previous step (found in build/).
  3. Save the release.

Done. Customers can now run tools/build.sh to get the new version as described here.

diff-server's People

Contributors

aboodman avatar ahl avatar arv avatar elsigh avatar jdunck avatar lesnitsky avatar phritz avatar ripventura avatar sboodman avatar

Watchers

 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.