No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Derek McQuay 108b03be21 readme edits 8 months ago
cmd/hdxd update readme 8 months ago
vendor initial commit 8 months ago
Gopkg.lock initial commit 8 months ago
Gopkg.toml initial commit 8 months ago
LICENSE initial commit 8 months ago
README.md readme edits 8 months ago
db.go set SetMaxOpenConns to 8 8 months ago
ip.go add credt for ip grabbing 8 months ago
routes.go initial commit 8 months ago
server.go initial commit 8 months ago
sql.go initial commit 8 months ago

README.md

hdx

Simple IP counting web service

Installing From Source

Clone the repo or if your $GOPATH is already set, run:

go get s.mcquay.me/dm/hdx

Once there, you can install by running

$ go install hdx/...

This will yield a binary called hdxd. hdxd comes with its own usage:

$ hdxd run -h

run hdxd with given options

Usage:
  app run [flags]

Flags: 
  -h, --help                  help for run
  -n, --host string           hostname
  -p, --port int              port (default -1)

hdxd can be run by giving these flags values. For example:

$ hdxd run -p 8080

is the most basic way to run the application.

Expects a Postgres DB with DBName ‘hdx’, DBUser ‘dm’ and running on localhost:5432

Running:

docker run --name some-postgres -p 5432:5432 -e POSTGRES_USER=dm -e POSTGRES_DB=hdx -d postgres

Should get you a postgres DB running you can use to try it out.