movienight

module
v0.0.0-...-e49eac2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: MIT

README

Dev Setup

Getting the code

  • Assume you want to develop in ~/movienight.src
    • $ mkdir ~/movienight.src
  • Copy enable-movienight.sample from github to ~/movienight.src/enable-movienight
    • Adjust enable script as needed, but the GOPATH and DATABASE_URL are the critical bits
    • DATABASE_URL is at a reasonable default for local dev
    • $ source enable-movienight
  • Make the standard go directory structure
    • $ mkdir -p ~/movienight/{bin,pkg,src/github.com/iansmith/}
  • Create the movienight directory as a "standard" go source package
    • $ pushd ~/movienight/src/github.com/iansmith; git clone git@github.com:iansmith/movienight.git; popd
    • Note that the .git is in the dir src/github.com/iansmith/movienight

Database setup

  • Get postgres 9.X running, but bind to port 5433 (not 5432 b/c it would conflict with mesa)
    • on OS with homebrew: $ postgres --port=5433 -D /usr/local/var/postgres
  • Make the DB
    • $ createdb -p 5433 movienight
  • Install the command line tools, assuming you have your GOPATH set (see above)
    • $ go get github.com/tools/godep
    • $ go get github.com/gopherjs/gopherjs

Build

  • There are two makefiles, one for server (in the root directory) and one for the client, in client.
    • The server makefile also builds the utilities like pagegen, create_acct, and migrate.
  • Makefiles are very dependent on the cwd, so use with caution

Migrate

  • To put your database in the right state for use do migrate --up

Directories

Path Synopsis
Godeps
_workspace/src/github.com/garyburd/go-oauth/oauth
Package oauth is consumer interface for OAuth 1.0, OAuth 1.0a and RFC 5849.
Package oauth is consumer interface for OAuth 1.0, OAuth 1.0a and RFC 5849.
_workspace/src/github.com/gopherjs/gopherjs/js
Package js provides functions for interacting with native JavaScript APIs.
Package js provides functions for interacting with native JavaScript APIs.
_workspace/src/github.com/lib/pq
Package pq is a pure Go Postgres driver for the database/sql package.
Package pq is a pure Go Postgres driver for the database/sql package.
_workspace/src/github.com/lib/pq/listen_example
Below you will find a self-contained Go program which uses the LISTEN / NOTIFY mechanism to avoid polling the database while waiting for more work to arrive.
Below you will find a self-contained Go program which uses the LISTEN / NOTIFY mechanism to avoid polling the database while waiting for more work to arrive.
_workspace/src/github.com/lib/pq/oid
Package oid contains OID constants as defined by the Postgres server.
Package oid contains OID constants as defined by the Postgres server.
client
things in this package are compiled *BOTH* for client and server
things in this package are compiled *BOTH* for client and server
tooling
these are data structures EXCHANGED between client and server and thus are compiled on both sides of the wire.
these are data structures EXCHANGED between client and server and thus are compiled on both sides of the wire.

Jump to

Keyboard shortcuts

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