Skip to content

atmarcosrodrigues/webchat-node-react

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

WebChat Node/React Application

Web chat application using ReactJS, Node.js and socket.io

Installation Guide

Requirements

For Backend

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

For Frontend

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

About

Web chat application using ReactJS, Node.js and socket.io

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published