skygear-server

command module
v0.4.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2016 License: Apache-2.0 Imports: 27 Imported by: 0

README

Welcome to the Oursky Deployment Project

Build Status

Dependencies

  1. go v1.5
  2. https://github.com/tools/godep is used for managing go lib
  3. PostgreSQL if you are using pq implementation of skydb:
    • Minimum version: 9.3
    • Recommended version: 9.4
  4. zmq is used for connecting plugin
    • brew install libsodium zeromq czmq

Development

$ go generate github.com/oursky/skygear/skydb/... $ go build && ./skygear development.ini

config.ini can be provided in args or os ENV OD_CONFIG.

Suggested to use fresh for local development

$ OD_CONFIG=development.ini fresh

Test

You may refer to .travis.yml

Prepare the testing DB
  1. Create test DB skygear_test on local PostgreSQL
  2. Enable PostGIS on skygear_test.
    $ psql -c 'CREATE EXTENSION postgis;' -d skygear_test
    
  3. Test case assume the 127.0.0.1 have access to skygear_test, please add following to pg_hba.conf

host all all 127.0.0.1/32 trust

run go test github.com/oursky/skygear/...

For local development, you are suggested to open GoConvey to keep track of testing status.

refs: https://github.com/smartystreets/goconvey

Deploy to heroku

On .ini,

  • [http]host should left empty for using $PORT on heroku deployment
  • [db]option should left empty for usign $DATABASE_URL on heroku deployment

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
zmq
pq
Package skyerr contains information of errors used in skygear.
Package skyerr contains information of errors used in skygear.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL