Local HTTP server for employee data
Linux or MacOS machine
go get github.com/jperelshteyn/syndio_hw
go run $(go env GOPATH)/src/github.com/jperelshteyn/syndio_hw/main.go [-port] [-seed_db] [-db_path]
- -port: local port to serve HTTP requests (defaults to
PORT
environment variable) - -seed_db: cleans and fills DB with seed employee data (defaults to false)
- -db_path: path to SQLite DB file, which gets created if does not exist (defaults to current working directory)
curl localhost:$PORT/employees