Git Product home page Git Product logo

chat-app's Introduction

Hello there ๐Ÿ‘‹

I am a fullstack web application developer from Sri Lanka ๐ŸŒŠ and I absolutely love to code ๐Ÿ’ป
I am currently working as a Senior Software Engineer at Multiplier, which is APAC's first and fastest growing PEO platform ๐ŸŒ
I'm constantly working on improving my coding skills, learning new technologies and building hobby projects ๐Ÿ‘พ

My primary web development stack is

  • React.js
  • Vue.js
  • Node.js

But I also love working with Laravel and Django.
I write articles whenever I can find some free time. You can find them on dev.to

My stack mostly includes




You can find me on LinkedIn and Twitter.

chat-app's People

Contributors

davehowson avatar dependabot[bot] 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

chat-app's Issues

fix: React doesn't connect to socketIO

Your React Application can't connect to socketIO

Tips to fix this

  • Remove socket.io and socket.io-client because you are using very old versions
  • Install them again

This is how you can connect now

const http = require("http")
const {Server} = require("socket.io");

const app = require("express")();

const server = http.createServer(app)

const io = new Server(server, {cors: {origin: 'http://localhost:3000'}});

io.on("connection", socket => {
  console.log("connected");
})

const port = process.env.PORT || 5000;

server.listen(port, () => console.log(`Listening on port ${port}`))

Not show new message

When I send a new message, I have to refresh page to show a new message on UI. Both on 2 users (send and receive message).
How can it auto refresh the page to get new message?

BrowserlistError

Steps to Reproduce
While, I run "npm run dev" command after installing all the required packages as per your instructions, the application popped an error related to Browserlist.

Error

 ./node_modules/react-dev-utils/webpackHotDevClient.js
[1] BrowserslistError: [BABEL] C:\Users\khiza\Downloads\Compressed\chat-app-master\client\node_modules\react-dev-utils\webpackHotDevClient.js: Unknown browser query `basedir=$(dirname "$(echo "$0" | sed -e 's`. Maybe you are using old Browserslist or made typo in query. (While processing: "C:\\Users\\khiza\\Downloads\\Compressed\\chat-app-master\\client\\node_modules\\babel-preset-react-app\\dependencies.js$0")
[1]     at Array.reduce (<anonymous>)
[1]     at Generator.next (<anonymous>)

Please let me know, how to fix this error.

Version

  • Platform: Windows
  • Node version: 12.16.1
  • npm version: 6.14.9

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.