Skip to main content

Tedshd's Dev note

PgREST - build note

Table of Contents

# PgREST - build note

# This is Mac OS X build

## install PostgreSQL

postgres.app PostgreSQL Tutorial

  1. set PATH in shell(.bashrc, .zshrc, …)
PATH="/Applications/Postgres.app/Contents/Versions/9.3/bin:$PATH"
  1. create the plv8 extension
-> psql -U Ted_Shiu -c "create extension plv8"
CREATE EXTENSION

## install PgREST(Must install node.js before)

npm i -g pgrest

Refer - PgREST: Node.js in the Database