25 lines
435 B
Markdown
25 lines
435 B
Markdown
## Serve a RESTful API from any Postgres database
|
|
|
|
[](https://travis-ci.org/begriffs/dbapi)
|
|
|
|
### Installation
|
|
|
|
```sh
|
|
brew install postgres
|
|
createuser -d postgres
|
|
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
|
|
```
|