Skip to content

pxFIN/node-express-postgresql-server

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Node with Express + PostgreSQL Server

Build Status Slack Greenkeeper badge

An easy way to get started with a Express server with PostgreSQL with Node.js. Read more about it.

Features

  • Babel 7
  • Environment Variables
  • Express
  • REST API
  • PostgreSQL

Requirements

Installation

  • git clone [email protected]:rwieruch/node-express-postgresql-server.git
  • cd node-express-postgresql-server
  • npm install
  • start PostgreSQL
  • npm start
  • optional: include .env in your .gitignore

GET Routes

Beyond GET Routes

CURL

  • Create a message with:
    • curl -X POST -H "Content-Type:application/json" http://localhost:3000/messages -d '{"text":"Hi again, World"}'
  • Delete a message with:
    • curl -X DELETE -H "Content-Type:application/json" http://localhost:3000/messages/1

Postman

About

Basic Node with Express + PostgreSQL Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%