Skip to content

saturdayclass/simple-chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Chat App

This repository for example simple chat app with react and typescript

Live demo

Gabut Chat App

How to use

First, you need to creact .env file in root folder and inside folder client. Then in file .env in root folder you need to insert this variable

PORT=your port want to use
DB_URL=your mongodb url cluster

and file .env inside folder client you need to insert this variable.

REACT_APP_SOCKET_URL=http://localhost:your port

Second, you need to start the socket server with this command in root folder

npm start

Then, start the react app inside folder client with this command

npm start

Done! don't forget to click star button above. haha.