Giter VIP home page Giter VIP logo

node-chat's Introduction

Hi there!

I'm Igor, a Senior Software Engineer with 8 years of experience. Mostly specialized in Node.js (TypeScript), React and AWS, with a proven record in both seed stage startups and IPO’d enterprises. Lifelong learner with deep expertise in fintechs and system architecture.

LinkedIn Gmail Website
Visitor Badge

Technologies

JavaScript TypeScript Node.js React React Native Next.js GraphQL
PostgreSQL MongoDB DynamoDB Redis
Docker Amazon AWS Terraform

Statistics

node-chat's People

Contributors

aweary avatar commonraven avatar derpgoncz avatar enzopb avatar igorantun avatar lisandro52 avatar ramyelkest avatar somecodingwitch avatar yuvadm avatar zoo1 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  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

node-chat's Issues

Help required integrating auto login

Hi there,

this is not an issue with the chat but with a custom way to integrate this for my userbase. I have connected the chat to mysql to check for a valid username but I am having trouble to actually launch the chat when providing the user details.

Here is my solution so far:

I added:

app.get("/:username/:id?", (req, res) => {
console.log(escape(req.params.username));
console.log(escape(req.params.id));

});

to pass the username and a key to verify a valid user. The console returns the username and id correctly. Now my problem is that I want to auto connect the user to the chat with the given details. So I basically want to remove the option so the user has to enter a username and use my urll provided username to connect him.

Your help would be greatly appreciated. I am more than willng to donate a few bucks to get this working.

My actual code modification is:

app.get("/:username/:id?", (req, res) => {
	con.query(
      "SELECT * FROM users WHERE username = " +
        con.escape(req.params.username) +
        " AND token = "+
        con.escape(req.params.id),
        function (err, result, fields) {
		reslen = result.length;
	  	if (reslen == 0){
		if (err) throw err;
		console.log("Invalid user");
		} else {
		console.log("Valid user");
               // this is the place where I need to connect the username to the chat
		}
		}
    );
});

The mysql connection etc is working fine. It shows in the console if the details were correct or not. I just need a way to actually connect the user to the room with his username. Right now its just stuck loading nothing :)

SSL Broken

Chat works great as HTTP, but when I change the config to:

{
"log": true,
"port": 3000,
"url": "/",
"ssl": {
"use": true,
"key": '/privkey.key',
"cert": "/cert.pem"
},
"readline": {
"use": true,
"prompt": "[--:--:--][CONSOLE] "
}
}

I get the following error:

[--:--:--][CONSOLE] fs.js:584
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^

TypeError: path must be a string
at TypeError (native)
at Object.fs.openSync (fs.js:584:18)
at Object.fs.readFileSync (fs.js:431:33)
at Object. (/home/user/Documents/node-chat/app.js:369:18)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:146:18)

any ideas on how to fix this?

Thanks in advance for the support!

Is this project alive?

This looks like it has a lot of potential but no action for 2 years.

Is this alive and kicking? Would love to see a chat system with many features and also include webcams!

New update?

Hey guys, do u have a new update or is abandoned ??

Load inline images

If you'd please consider the addition of refined images in the message field instead of a link to them, I'd be greatly appreciated. I'm very thankful for your consideration.
Have a good day sir

Add suport for uploading images

Could you add suport for uploading images, if storage is a problem, you can write a script that deletes images every seconds or so.
👍

Username mention autocomplete

Make @mentions autocomplete available usernames.
Example: I type Swa and it gives me options like Swaggirl12133 and Swagguy12133 to choose from.

MongDB Support

What do you think of changing the dataset to Mongo?
I could work in a port.

Blop.wav not reproducing on Firefox

Hi! It's me again.
After I spent some more time with the chat, I noticed that the "blop" sound wouldn't play on Firefox.
After some digging, I found that Firefox can't reproduce WAV files encoded with more than 16 bits, so I re-encoded the blop.wav file to 16 bits, and it now works properly.

Another issue I found with the sound is that the chat.js file wasn't properly loaded by Firefox, because the speechToText variable is only defined on Chrome, so I added a definition check for that and everything is running nicely! Again, I'm about to add a pull request to this issue so you can check it and merge.
Cheers!

Folders not loading relatively to the app.js root folder

While testing the chat (pretty awesome, by the way) with PM2, I had an error with the /views folder not loading correctly, because I was calling the app.js file from a different location than the repo folder.
I fix'd it and I'm now about to create a pull request for this.

store chat?

Project is AMAZING! do you plan to develop an application capable of storing messages?

Hello

It's a real shame that the administrator does not work, the application is beautifully designed,i know this is not easy to make but its a shame.

How do I scrape in as admin

How and where do I add myself admin How to connect to the chat admin please help please I would be glad if you could put as much visual Thank you very much in advance

Private rooms

Hello,

My English Little bad. Sorry.

I want to make separate links

sample:

samplenodechat.com:8777/roam1
samplenodechat.com:8777/roam2

it does not have to be visible on the link

How can I make it easiest?

Thank you.

Translate by apache

When I try to use proxypass by apache, I can't connect, and it works live.

Do you know why?

SSL = it does not work

Hi

I try this CHAT, it is very good with HTTP

I try SSL, but it doesn´t work, i changed in config.json:
Before:
"ssl": {
"use": true,
"key": "/certificate.key",
"cert": "/certificate.crt"

After:
"ssl": {
"enabled": true,
"key": "/certificate.key",
"cert": "/certificate.crt"

It start the CHAT but in Google Chrome, it function with HTTP, not HTTPS

Can you give me one answer for SSL?

Thanks.

Centralized Config File

Move all of the configuration of the server to a single file (config.json)

I would suggest moving the following settings there:

  • MessagesPerSecond
  • IP
  • Port
  • LogFileLocation
  • LogLevel
  • SSLCertificateLocation
  • SSLKeyLocation

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.