duet

command module
v0.0.0-...-bc5bc59 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2017 License: MIT Imports: 8 Imported by: 0

README

duet

SE 464 project

Set up

Start off by setting up your GOPATH and updating your PATH

export GOPATH=$HOME/go # Go packages will be installed here from github
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin # Built Go files will go here

Also install godep by running go get github.com/tools/godep.

Install postgres. Now create a database and enable the uuid-ossp extension:

createuser duet -d
createdb duet -O duet
psql -d duet --command='CREATE EXTENSION "uuid-ossp"'

Deploy

Make sure this repository is in your GOPATH then run

godep get
godep go build
./duet &

This serves the API on port 8080. graphiql, a GraphQL explorer, is located at :8080/ and the GraphQL endpoint is :8080/graphql.

Updating Dependencies

If new packages are installed, run godep save. This saves the exact version of the dependency used.

To fetch dependencies run godep get.

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