Web chat application using ReactJS, Node.js and socket.io
Create a file for environment variables:
cd server
vi .env
Add the following changing with your own configuration with a valid mongodb server:
PORT=5000
MONGO_URL="mongodb://localhost:27017/chat"
Install packages
npm install
Make sure mongodb is running in background. For start the server:
npm run start
For run the tests:
npm run test
Create a file for environment variables:
cd client
vi .env
Add the following chaging with your own configuration:
REACT_APP_LOCALHOST_KEY="chat-app-current-user-2"
REACT_APP_AVATAR_API="https://api.multiavatar.com/4645646"
Install packages
npm install
Open another terminal in folder, Also make sure mongodb is running in background.
npm run start