+
Skip to content

andyzg/duet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

SE 464 project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载