GitXplorerGitXplorer
j

hours-api

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
2957e02bd4818c423f6f1aeb303e782deb6b8899

Add database migrations

jjulian7 committed 8 years ago
Unverified
a0c1d2b0219c5c37c96fa1875dedece61bb98381

Add AllProjects, FetchProject

jjulian7 committed 8 years ago
Unverified
38f02b67b9a3125c0902ab3d77c3fdef5cdd6c9a

Add GetClient

jjulian7 committed 8 years ago
Unverified
766d52f7115320b7e4111f43cf998e76a41a7705

Add db handler, AllClients handler

jjulian7 committed 8 years ago
Unverified
76027f81ee3da48630a3eae0cd1781404075c10b

Initial

jjulian7 committed 8 years ago

README

The README file for this repository.

Hours API server

Example JSONApi server for the (also example) Hours project.

Build

Just run make. It will generate a command api-server.

Handle database

Get database migration handler:

go get github.com/mattes/migrate

Then, set up schema to database:

migrate -url postgres:///hours\?sslmode=disable -path=db up

Run

Syntax:

api-server [-addr <bind-ip:port>] -db <database bind string>

Where

  • addr: listening address. Default: 0.0.0.0:4000
  • database bind string: postgres URL

API

TBD