dogfort

command module
v0.0.0-...-41931c1 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2014 License: GPL-2.0 Imports: 8 Imported by: 0

README

dogfort

Share images and chat with your asshole friends. Antisocial networking.

.env file

The following environment variables need to be set in a local .env file.

PORT=9000
HOST=localhost

MONGO_HOST=localhost
MONGO_DB=dogfort
run server
go get github.com/brianstarke/dogfort
cd $GOPATH/src/github.com/brianstarke/dogfort
go run main.go
rebuild app

The frontend app lives in the app/ directory and the jade, less, and coffeescript are compiled by gulp and copied to the public/ folder.

You'll need node, gulp, and bower.

cd app
npm install -g gulp
npm install -g bower
npm install
gulp --require coffee-script/register build

That will create the public/ folder which will be served by Martini.

dev mode

Easiest way to work on dogfort frontend is to run gulp --require coffee-script/register in the app directory which will put the app/ directory in watch mode. Updating files in that directory will automatically rebuild everything. This way you can run go run main.go from the main directory and just keep refreshing the browser to see changes.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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