Skip to content
react+fluxxor+socket.io chat
Branch: master
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.
bin
client
public
server
test
.eslintrc
.gitignore
.travis.yml
Procfile
README.md
app.json
config.json
package.json

README.md

node-flux-boilerplate

react+fluxxor+socket.io chat

Build Status Deploy

  • ES6(babel) + ESLint
  • express 4.13.x
  • socket.io 1.3.x
  • React 0.14 + Fluxxor 1.7 + Browserify
  • mongoose + connect-mongo
  • jade
  • mocha + supertest
  • Heroku
  • Travis CI

REQUIREMENTS

  • Node.js v4.x
  • MongoDB v3.x

DEVELOP

% npm run watch
% PORT=3000 DEBUG=chat* npm start

DEPLOY

% export NODE_ENV=production
% npm run build
% PORT=3000 DEBUG=chat* npm start

TEST & LINT

% npm test

DEPLOY to Heroku

create app

% heroku apps:create my-heroku-app-name
% git push heroku master

config

% heroku config:add TZ=Asia/Tokyo
% heroku config:set "DEBUG=chat*"
% heroku config:set NODE_ENV=production

enable MongoDB plug-in

% heroku addons:add mongolab
# or
% heroku addons:add mongohq

logs

% heroku logs --num 300
% heroku logs --tail

DEPLOY HOOK

edit .travis.yml.

  • deploy to Heroku when Travis CI passed
You can’t perform that action at this time.