项目作者: u4bi-sev

项目描述 :
node-postgresql
高级语言: JavaScript
项目地址: git://github.com/u4bi-sev/node-postgresql.git
创建时间: 2017-10-27T21:57:39Z
项目社区:https://github.com/u4bi-sev/node-postgresql

开源协议:

下载


node postgresql

server

  1. npm install
  2. npm start

client(CORS)

  1. http://127.0.0.1:5500/client/index.html

API

URL METHOD
/user GET
/user/:id GET
/user POST
/user/:id PUT
/user/:id DELETE

Table

  1. CREATE TABLE _user (
  2. id SERIAL PRIMARY KEY,
  3. name varchar(32),
  4. pay double precision,
  5. age integer
  6. );

requirements

  • pg-promise
  • restify
  • restify-cors-middleware
  • axios (client)