This repository basically contains the chat from the Socket.io tutorial. It's my personal playground for getting familiar with websockets and the whole Node transpiling stack.
- Node.js 7.10.0+
- yarn 0.23.4+
- Clone the project by running
git clone https://chiron@home.chiron-online.de/gitlab/chiron/websocket-chat.git
. cd
into the project.- Install dependencies by running
yarn install
.
The default configuration resides at config/default.json
.
websocket-chat uses config to manage configuration. Read their wiki to know how to hack into the configuration.
- Make sure your
NODE_ENV
is notproduction
. - Start Webpack to build your frontend assets by running
yarn webpack
. - Start the server by running
yarn devserver
. - Make changes. Both the server and Webpack will restart on detected changes.
- Make sure your
NODE_ENV
isproduction
. - Prepare both server and asset files by running
yarn build
. - Start the server by running
yarn serve
.