Git Product home page Git Product logo

chatapp-nodejs's Introduction

ChatApp Node.js

This is a simple ChatApp built using Node.js.

Server-side Script Overview

This Node.js script implements a real-time chat application using Socket.IO. Here's a breakdown of its functionality:

  • Dependencies: The script utilizes Express, HTTP, and Socket.IO.
  • Server Initialization: It creates an Express server with Socket.IO attached.
  • Socket Connection: Listens for new socket connections and handles events.
  • User Management: Manages user joining, leaving, and tracking users in rooms.
  • Messaging: Handles sending and receiving messages, including profanity filtering.
  • Private Messaging: Allows users to send private messages to each other.
  • Location Sharing: Supports sharing location data with other users.
  • Typing Indicators: Implements typing indicators to notify other users.
  • Server Startup: The server listens on a specified port and logs its status upon startup.

For detailed code explanation, refer to the provided server script.

Screenshots

Home Nice Job Two Users

Installation

To run the application locally, follow these steps:

  1. Clone the repository:

    git clone [https://github.com/your-username/chatapp.git](https://github.com/dxtaner/chatApp-nodejs)
  2. Navigate to the project directory:

    cd chatApp-nodejs
  3. Install dependencies:

    npm install
  4. Start the server:

    npm start
  5. Open your web browser and navigate to http://localhost:3042 to access the ChatApp.

Technologies Used

  • Node.js
  • Express
  • Socket.IO
  • Bad Words (for profanity filtering)
  • dotenv (for environment variables)

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This project is licensed under the terms of the MIT license. See the LICENSE file for details.

Links

chatapp-nodejs's People

Contributors

dxtaner avatar

Watchers

 avatar

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.