Skip to content

flbraun/websocket-chat

Repository files navigation

websocket-chat

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.

Requirements

  • Node.js 7.10.0+
  • yarn 0.23.4+

Preparation

  1. Clone the project by running git clone https://[email protected]/gitlab/chiron/websocket-chat.git.
  2. cd into the project.
  3. Install dependencies by running yarn install.

Configuration

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.

Developing

  1. Make sure your NODE_ENV is not production.
  2. Start Webpack to build your frontend assets by running yarn webpack.
  3. Start the server by running yarn devserver.
  4. Make changes. Both the server and Webpack will restart on detected changes.

Production

  1. Make sure your NODE_ENV is production.
  2. Prepare both server and asset files by running yarn build.
  3. Start the server by running yarn serve.

About

A simple web chat based on websockets.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published