A starting point for basic Node.js/Express.js applications that use Socket.io and a simple Express API
Node.js v7 or higher
mocha
tests withchai-http
for API and socket.io interaction testing- a config page served at
/config
to easily modify config variables when in dev mode - starter
styles.css
with cross-browser recommended fixes from html5-boilerplate
git clone https://github.com/nafeu/node-socket-seed.git <PROJECT NAME>
cd <PROJECT NAME>
npm install
npm install -g nodemon
cp sample-config.js config.js
nodemon server.js
If you don't want to use nodemon
you can also just run node server.js
and omit the nodemon
installation.
Go to http://localhost:8000/
in a web browser.
Use npm test
Nafeu Nasir
MIT