larsthorup / offline-sandbox

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cloned from engineio-sandbox.

initial setup

# database
# configure a PostgreSQL instance, e.g. on elephantsql.com or locally
# 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

About

License:MIT License


Languages

Language:JavaScript 82.5%Language:HTML 10.9%Language:PLpgSQL 3.8%Language:CSS 2.8%