Files
postgrest/README.md
T
2014-09-23 22:04:04 -07:00

26 lines
538 B
Markdown

## Serve a RESTful API from any Postgres database
[![Build Status](https://travis-ci.org/begriffs/dbapi.svg)](https://travis-ci.org/begriffs/dbapi)
### Installation
```sh
brew install postgres
createuser -d postgres
psql template1 -c "ALTER ROLE postgres WITH SUPERUSER;"
createdb dbapi_test -O postgres
cabal install -j --enable-tests --reorder-goals
```
Example usage:
```sh
dbapi -p 3000 -d postgres://postgres:@localhost:5432/dbapi_test
```
### Running tests
```sh
cabal test --show-details=always --test-options="--color"
```