Coder Social home page Coder Social logo

koolkishan / chat-app-react-nodejs Goto Github PK

View Code? Open in Web Editor NEW
649.0 12.0 479.0 2.24 MB

Chat Application Using React, Node.js and Socket.io with MongoDB

Home Page: https://www.youtube.com/watch?v=otaQKODEUFs

HTML 4.54% JavaScript 93.67% CSS 1.19% Dockerfile 0.60%
chatapplication socket-io reactjs nodejs mongodb fullstack-javascript mern-stack mern-project fullstack-development chat-room

chat-app-react-nodejs's Introduction

Snappy - Chat Application

Snappy is chat application build with the power of MERN Stack. You can find the tutorial here

login page

home page

Installation Guide

Requirements

Both should be installed and make sure mongodb is running.

Installation

First Method

git clone https://github.com/koolkishan/chat-app-react-nodejs
cd chat-app-react-nodejs

Now rename env files from .env.example to .env

cd public
mv .env.example .env
cd ..
cd server
mv .env.example .env
cd ..

Now install the dependencies

cd server
yarn
cd ..
cd public
yarn

We are almost done, Now just start the development server.

For Frontend.

cd public
yarn start

For Backend.

Open another terminal in folder, Also make sure mongodb is running in background.

cd server
yarn start

Done! Now open localhost:3000 in your browser.

Second Method

  • This method requires docker and docker-compose to be installed in your system.
  • Make sure you are in the root of your project and run the following command.
docker compose build --no-cache

after the build is complete run the containers using the following command

docker compose up

now open localhost:3000 in your browser.

chat-app-react-nodejs's People

Contributors

koolkishan avatar rajkaranm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chat-app-react-nodejs's Issues

tickets para a nova fila

Olá, quando não tenho nenhuma fila criada os tickets aparecem no login de usuários que são operadores, mas quando crio uma ou duas filas não aparecem nenhum dos novos tickets na lista dos operadores, o que tenho que fazer para encaminhar o novo ticket para a fila?

emoji-picker-react style does not take effect

css code:.button-container {
display: flex;
align-items: center;
color: white;
gap: 1rem;
.emoji {
position: relative;
svg {
font-size: 1.5rem;
color: #ffff00c8;
cursor: pointer;
}
.emoji-picker-react {
position: absolute;
top: -350px;
background-color: #080420;
box-shadow: 0 5px 10px #9a86f3;
border-color: #9a86f3;
.emoji-scroll-wrapper::-webkit-scrollbar {
background-color: #080420;
width: 5px;
&-thumb {
background-color: #9a86f3;
}
}

Deployment error

What are changes that we have to make in cors
After deployment frontend to netlify and backend to heroku.?

Notifications not working

Added mangoDB to a local server to use for local machines but when sending messages doesnt recieve notification from sender or to reciever

Data not getting in MongoDB

Sir I have done till Register Functionality and when I am clicking on Add user then it doesn't navigate to the chat page and also the data is not added at the MongoDB .
Can you please help me.
Screenshot (157)

Issue in Register user and in chat section

First, i have issue in Register user, when i register a new user, the data is succesfully saved in db, but the loacalStorage showing blank object
image
after register its opening setavatar page bcz chat-app-user is present in local storage though its {} but giving error while setting avatar saying undefined
image

but if i login with same user creds, after removing object from localstorage then localstorage showing data and can set avatar too
image
and also when ever new user try to setAvatar always give toast error, if try again then its working, but giding error in 1st always, u also face issue in video too

now chat page is open but not able to display only contacts, i watched in utube video , this happens with u too, u didn't show how u tackle it , like if register some users, then i already tried it, but not showing anything in chats

image
this last pic, look in console, there some errors too, get api error, , look into it too, i am atthing my repo link here so u can chk my where i have correct -> https://github.com/Shubhithebeast/LetsChat.git
thanku, that'll for now... I am really enjoying ur project tutorial....

UseEffect Hook Not Working

Sir I have done till Avatar and till that only useEffect hook is not working and it is showing that destroy function is not defined.
Can you please tell me the error of the hook.
Screenshot (159)

MongooseError

Help for this error
MongooseError: Operation users.findOne() buffering timed out after 10000ms
at Timeout. (C:\CHAT\chat-app\server\node_modules\mongoose\lib\drivers\node-mongodb-native\collection.js:148:23)

connection error

net::connection error after entering the details in register.
React App - Google Chrome 14-02-2023 12_10_55 AM

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.