Getting Started

What is pREST?

pREST is a way to serve a RESTful API from any PostgreSQL 9.4+ database.

Installation

go get github.com/prest/prest

Running

Initally can use some environment variables by example:

  • PREST_HTTP_PORT (default 3000)
  • PREST_PG_HOST (default 127.0.0.1)
  • PREST_PG_USER
  • PREST_PG_PASS
  • PREST_PG_DATABASE
  • PREST_PG_PORT (default 5432)
  • PREST_JWT_KEY
PREST_PG_USER=postgres \ 
PREST_PG_DATABASE=prest \
PREST_PG_PORT=5432 \
PREST_HTTP_PORT=3010 \
prest # Binary installed

In case needs use it via Docker: https://hub.docker.com/r/prest/prest/

docker run -e PREST_HTTP_PORT=3000 \
	-e PREST_PG_HOST=127.0.0.1 \
	-e PREST_PG_USER=postgres \
	-e PREST_PG_PASS=pass \
	prest/prest:0.2

Tags

  • 0.2 (stable)
  • 0.1 (stable)
  • lastest (developer)