This is a simple chat app implemented using nodeJS and ReactJS.
It uses also: webpack, express, yarn, socket.io.
- Install
nvm - Clone the Github repo:
git clone https://github.com/GContaldi/node_chat.git
- Install the node version specified in
.nvmrcby running
nvm install
- Install
yarnby running
brew update
brew ninstall yarn
- Install dependencies by running
yarn install
- Run
npm startand the app will run at http://localhost:5000. - The port can be changed by passing it as env variable, like:
PORT=3000 npm start.
- To build the client app run
npm run build:client. - To continuously build and watch for changes run
npm run build:client -- --watch.
- To run the tests
npm test. - To run the tests and watch for changes run
npm test -- --watch.
- To lint the code run
npm run lint.