Babble is a basic chat client+server, implement using long-polling and Node.js
First, install the chat by cloning this git repo and run npm install
.
To run the web app, simply run npm start
To run the tests, simply run npm test
The server runs at localhost:9000, and the webapp runs at localhost:8080.
npm start
- runs both the client and the server normally.npm test
- runs the server tests using mocha & opens the folder in port 8081npm run client
- Runs the client server usinghttp-server
npm run client-test
- Runs the client tests in localhost:8081npm run server
- Runs the server using vanilla Node.jsnpm run server-dev
- Runs the server script usingnodemon
npm run server-tests
- Runs the server tests usingmocha
sass-compile
- Compiles the SCSS code in/client/style
.sass-watch
- Watches the SCSS code in/client/style
and recompiles it each time it is changed.