https://github.com/iansmith/movienight
movie night for creating a consensus about an afterwork movie showing
https://github.com/iansmith/movienight
Last synced: 2 months ago
JSON representation
movie night for creating a consensus about an afterwork movie showing
- Host: GitHub
- URL: https://github.com/iansmith/movienight
- Owner: iansmith
- License: other
- Created: 2015-06-07T19:43:20.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-17T16:02:43.000Z (almost 11 years ago)
- Last Synced: 2024-06-21T12:49:56.607Z (almost 2 years ago)
- Language: Go
- Size: 1.32 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
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`