A simple chat application featuring multiple chat rooms built upon socket messaging concept.
tejasweatherapplication.herokuapp.com
-
Install NodeJS in your machine
-
Install node modules
$ cd chat-app\ $ npm i
-
Project structure
-
Root
./
├──
public
HTML, JS, CSS files├──
src
NodeJS APIs├──
package.json
package manager file├──
package-lock.json
package manager file├──
.gitignore
list of files and folders to be ignored in git├──
README.md
Instruction file -
/public
./
├──
css
css files├──
img/favicon.io
chat icon├──
js/chat.js
file to handle socket event├──
chat.html
chatting page├──
index.html
login page -
/src
./
├──
utils/messages
file to decorate message├──
utils/users.js
file to manipulate user's data├──
index.js
file to initialize app
-
-
Go to project (chat-app) directory in terminal and run the command
npm run start
// will run on localhost:3000