A starting point for basic Node.js/Express.js applications that use Socket.io and a simple Express API. Ideal for proof-of-concepts.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
components
public
test
views
.eslintrc.json
.gitignore
.travis.yml
LICENSE.txt
README.md
package.json
sample-config.js
server.js

README.md

Node Socket Seed

A starting point for basic Node.js/Express.js applications that use Socket.io and a simple Express API

Build Status

Requirements

Node.js v7 or higher

Features

  • mocha tests with chai-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

Installation

git clone https://github.com/nafeu/node-socket-seed.git <PROJECT NAME>
cd <PROJECT NAME>
npm install

Development / Basic Usage

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.

Running Tests

Use npm test

Credits

Nafeu Nasir

License

MIT