Skip to content

Latest commit

 

History

History
37 lines (29 loc) · 1.04 KB

CONTRIBUTING.md

File metadata and controls

37 lines (29 loc) · 1.04 KB

Code of Conduct

This project and everyone participating in it is governed by the Code of Conduct. By participating, you are expected to uphold this code.

Development Environment

  • Set up PostgreSQL as described in the README
  • Install Go 1.10 and set up the Go environment variables
  • Install dep
  • Clone this repo to $GOPATH/src/github.com/hasura/pgdeltastream
  • Run dep ensure to update the dependencies

Build

Build the project using the go build command:

$ cd $GOPATH/src/github.com/hasura/pgdeltastream
$ go build

Run

Run the application with the arguments specifying database and server parameters:

$ ./pgdeltastream dbName pgUser pgHost pgPort serverHost serverPort 

Tests

Tests have been written using the Go testing framework. To run tests make sure you have Postgres running at localhost:5432.

Use go test to run tests. Example:

$ cd server
$ go test
<output truncated>
PASS
ok   github.com/hasura/pgdeltastream/server 0.113s