An open API service indexing awesome lists of open source software.

https://github.com/dev-shelvin-batista/nodejs-socket-server-chat

Backend project to generate chat with private channels developed in NodeJS and SocketIO.
https://github.com/dev-shelvin-batista/nodejs-socket-server-chat

chat chat-application node node-js nodejs nodemon npm socket socket-io socket-programming sockets

Last synced: 4 months ago
JSON representation

Backend project to generate chat with private channels developed in NodeJS and SocketIO.

Awesome Lists containing this project

README

          

# Project details

This project functions as a server for sending and receiving messages in a socket-type chat through private channels. These same channels can be used in any project, as long as they can use a dependency that allows socket connection. In this case, three types of frontend projects were used: Angular, React, and Ionic Angular. A chat can be established between all projects without any problems.

## Important note

None of these projects use a database on a server to store messages. Work is currently underway to add this requirement.

| |Version |
|----------------|-------------------------------|
|NPM |`11.5.2` |
|Node.js |`22.14.0`|

## Instructions

To run socket events to send and receive messages, follow these steps:

- Clone the project, either with the command git clone `https://github.com/dev-shelvin-batista/nodejs-socket-server-chat.git` or using a GitHub graphical tool.

- After cloning the repository, install the node dependencies using the command `npm install` inside the `nodejs-socket-server-chat` project folder. If an error occurs, add the --force option.

- Run the command `npm run start` to start the server. By default, the url `http://localhost:4000` is used.