/engineio-sandbox

Primary LanguageJavaScriptMIT LicenseMIT

engineio-sandbox

Cloned from js-fullstack-sandbox.

initial setup

# database
# configure a PostgreSQL instance, e.g. on elephantsql.com
# create server/.env from .env-sample and set DATABASE 

# hosting with zeit.co
npm install -g now
now login

# node.js dependencies
cd app
npm install
cd ../server
npm install

database

# run `recreate.sql` on the instance

run locally

Use two terminals:

1:

cd server
npm start

2:

cd app
npm start
# Note: connect on http://localhost:3001 to get websocket connection

deploy

cd server
npm run build
now
# Note: will use polling, not websocket, probably because of missing certificate configuration