mehulk05 / Chat-app-using-Nodejs

Chat app using Node js.Using socket .io how we made our chat app without a database
https://chatapp-using-node.herokuapp.com/
15 stars 15 forks source link

Chat room questions #1

Open Nlaux opened 3 years ago

Nlaux commented 3 years ago

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!

mehulk05 commented 3 years ago

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
Nlaux commented 3 years ago

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