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
.nvmrc
by running
nvm install
- Install
yarn
by running
brew update
brew ninstall yarn
- Install dependencies by running
yarn install
- Run
npm start
and 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
.