GithubHelp home page GithubHelp logo

utkarshahuja2003 / chat Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 206 KB

Web Chat App using Next, Node and Socket-io

Home Page: https://chat.ahujautkarsh.me

License: MIT License

JavaScript 36.17% CSS 2.63% TypeScript 61.20%
chat chat-application nextjs nodejs socket-io typescript

chat's Introduction

Next Logo           Node Logo          Socket-io Logo

Chat-App

This is a chat app made using Nextjs,TypeScript, Node and Socket.io

Features

  • User can join Chat Room by entering their name
  • Multiple Users can join the chat room and start chatting
  • Sender's username and timestamp visible with every message

This project utilizes ESLint for code quality maintenance. Ensure coding standards by following the recommended formatting guidelines.

Installation

Clone the repository:

git clone https://github.com/UtkarshAhuja2003/chat.git

Navigate to the project folder:

cd chat

Backend

  1. Install dependencies in root folder
npm install
  1. Copy sample env to .env
cp .env.sample .env

Change URL and port if changed in frontend 3. Start the server

npm start
  1. Check lint errors
npm run lint

Frontend

  1. Navigate to client directory
cd client
  1. Install dependencies in client
npm install
  1. Copy sample env to .env
cp .env.sample .env
  1. Start the nextjs app in development
npm run dev
  1. Check lint errors
npm run lint

Now your Project is ready to run.

File Structure

.
├──src # backend 
    ├── controllers # route controller
    ├── routes # Custom routes
    ├── socket # Socket Initialisation
    ├── validators
    ├── utils # Misc tools and stuffs
    │   ├── APIError
    │   ├── Async Handler
    │   └── APIResponse
    ├── app.js
    ├── index.js # entry file 
    └── constant.js
└── client # frontend directory
    ├── src
    │   ├── api
    │   ├── app
    │   │    ├── chat #page
    │   │    └── login #page
    │   ├── components
    │   │     ├── Connection
    │   │     └── Message
    │   ├── context
    │   ├── interfaces
    │   └── utils # Misc tools and stuffs
    └── public

Screenshots

image image image image

Demo Video

chat-app.mp4

chat's People

Contributors

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