Skip to content

tejaschauhan373/chat-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chat Application

A simple chat application featuring multiple chat rooms built upon socket messaging concept.

Deployed At:

tejasweatherapplication.herokuapp.com

Setup the Project

  1. Install NodeJS in your machine

  2. Install node modules

    $ cd chat-app\
    $ npm i
    
  3. Project structure

    1. 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

    2. /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

    3. /src

      ./

      ├── utils/messages file to decorate message

      ├── utils/users.js file to manipulate user's data

      ├── index.js file to initialize app

Run the Project

  • Go to project (chat-app) directory in terminal and run the command

    npm run start 
    

    // will run on localhost:3000