Giter VIP home page Giter VIP logo

chat-app's Introduction

✉️ Chat App

I built this simple chat app to learn Socket.io. I added some features like choosing username, displaying online users, sending and receiveing private messages, "user is writing" notification.

Features

 User must choose unique username to enter the chat app. Usernames are stored in localStorage. If user has any username in localStorage, chat page opens directly.

If user chooses an username that has already been chosen by someone else before, app displays warning message "Username already taken.".

Online users are listed on the left side.

 When user clicks any username on the online users list, messaging page opens. User can send and receive private message.

When user is typing, messaging page displays "Writing..." under the username.

🚀 Run

To run this app on your local machine:

  1. Clone the repo.
  2. Install required dependencies and start server:
cd server
npm install
node server.js
  1. Install required dependencies and start React app:
cd client
npm install
npm start
  1. You can view the app on http://localhost:3000

🛠️ Tools

  • Socket.io
  • Node.js
  • Express
  • React

📚 To Learn More

chat-app's People

Contributors

ozndrkn avatar

Stargazers

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