A simple chat app using Socket.io, with a frontend built using Vite and a backend using Node.js.
- Real-time messaging
- User login
- Message bubbles with tails
- User avatars
- Frontend: Vite, React, react-icons, react-router-dom
- Backend: Node.js, Express, Socket.io, nodemon
- Node.js (v14 or higher)
- npm (v6 or higher)
git clone https://github.com/peter-mwau/Web-Chat-App.git
cd Web-Chat-App
- Navigate to the backend directory:
cd backend
- Install the dependencies:
npm install
- Start the backend server:
npm start
- The backend server will start on http://localhost:8080.
- Navigate to the frontend directory:
cd frontend
- Install the dependencies:
npm install
- Start the frontend development server:
npm run dev
- The frontend server will start on http://localhost:5173.
- Open your browser and navigate to http://localhost:5173.
- Enter a username to log in.
- Start chatting in real-time!
Web-Chat-App/ ├── backend/ │ ├── node_modules/ │ ├── server.js | ├── socket.js | ├── store.js │ ├── package.json │ └── package-lock.json ├── frontend/ │ ├── node_modules/ │ ├── public/ │ ├── src/ │ │ ├── components/ │ │ ├── pages/ │ │ ├── App.jsx │ │ ├── main.jsx │ │ └── index.css │ ├── index.html │ ├── package.json │ ├── package-lock.json │ └── vite.config.js └── README.md
- Fork the repository.
- Create a new branch (git checkout -b feature-branch).
- Make your changes.
- Commit your changes (git commit -m 'Add some feature').
- Push to the branch (git push origin feature-branch).
- Open a pull request.
This project is licensed under the MIT License.