Chat-app-using-Nodejs icon indicating copy to clipboard operation
Chat-app-using-Nodejs copied to clipboard

Chat room questions

Open Nlaux opened this issue 4 years ago • 2 comments

Hi,

This is a great starting point for what I'm trying to do and it's be a great learning tool, thanks for putting this project. I'm still pretty new to socket.io / node and I was wondering if you might have a few suggestions for me.

  1. How could I move this from localhost to my web server? (I have a webserver / domain name pointing to my home webserver), so instead it running at localhost, I'd rather it run at my domain name if possible.

  2. How might I go about adding room names to the main join screen? So when a new user is going to join the a chat room, there would be an additional dropdown field that would show the already created rooms, so they could just pick from a list.

Thanks for your advice!

Nlaux avatar Apr 27 '21 23:04 Nlaux

1- For moving from localhost to web server you can use any domain which provides node support or node environment to run. Heroku is one of them. If you see I have already deployed it on heroku server . You can google how to deploy node js app on webserver.

  1. To show already created rooms you need to create one database and store the created room in database and when user join u can show the list of created active rooms. For that you can use mongo db which is quite easy to integrate with node js

mehulk05 avatar Apr 28 '21 09:04 mehulk05

Thanks for your advice, I will look into your suggestions. :)

Nlaux avatar Apr 28 '21 15:04 Nlaux