Basic Node with Express + PostgreSQL Server
Branch: master
Clone or download
Latest commit b04cca6 Jan 11, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src routing Jan 9, 2019
.babelrc first commit Jan 4, 2019
.env update env Jan 11, 2019
.gitignore first commit Jan 4, 2019
.prettierrc first commit Jan 4, 2019
.travis.yml first commit Jan 4, 2019
README.md Update README.md Jan 8, 2019
package-lock.json implement models and setup postgresql Jan 4, 2019
package.json finish postgresql Jan 4, 2019

README.md

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 git@github.com: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