Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 569 Bytes

File metadata and controls

25 lines (16 loc) · 569 Bytes

Simple node app

Requirements

  • To work with this application you need to have nodeJS installed.

Development

  • Run npm install to install the dependencies

Run it

  1. Create the messages table
CREATE TABLE messages(text TEXT);
INSERT INTO messages(text) VALUES('hello simplon');
INSERT INTO messages(text) VALUES('hello world’);
  1. Run the app (see the node-postgres doc for more details on environment variables)
PGDATABASE=? PGPASSWORD=? PGUSER=? node app.js