Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 449 Bytes

README.md

File metadata and controls

34 lines (23 loc) · 449 Bytes

nodegresql

Sample Node.js, PostgreSQL and Socket.io project

Installation

Default code will talk to PostgreSQL database named "playful". In psql:

create database playful;
\c playful

Populate "playful" with server_populate.js.

node server_populate.js

Install dependencies:

$ npm install socket.io
$ npm install pg

Yippee! You should now be able to run your server.

$ node server.js

enjoy!