cd client
npm install
npm install
bower install
gulp styles
- build sass styles into css.node main.js
- Start client app.
gulp styles
- Compile sass/scss into css directory.
gulp styles-watch
- Watch for sass/scss file changes and auto compile into css directory.
gulp clean
- Clean css directory.
The server will be responsible for serving data to the client such as chat messages, voice buffers, change channel messages...etc. This component does all communication to/from the client through a persistent web socket connection.
In order to successfully open a web socket connection, the client must provide a JWT token, which can be obtained through the token issuer.
cd server
npm install
node server.js
- Start server
The JWT token issuer resides in a separate process. The client will attempt to post a user's credentials to the token issuer. If they are valid, the token issuer will return a JWT token, which will then be persisted in localStorage for later consumption.
Start token issuer:
cd token_issuer
npm install
node main.js