Skip to content

cross-codes/Blip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📣 Blip

A web-based application to facilitate communication among users in virtual rooms, similar to platforms like Discord and Slack built using Socket.IO

Current version : 1.0

Blip


Usage

After cloning the repository, run the following command in the same directory that has the package.json file in it:

npm install

To start the app, run:

npm run start

and visit localhost:3000 (change the port to another number if you include a .env file with a different PORT)

Note

The only associated information with a user joined into a particular room is their name, room-number, a unique socket ID and their login time ; none of this information is stored on a database, but rather in the host server's RAM (see 📁 src/utils/users.js), so any limitations on the number of users that can be simultaneously hosted is entirely dependent on the server itself.

Development

The project uses nodemon as a dev-dependency, so you can use the script

npm run dev

to enable live reloading of the server on changes to any .js, .cjs, .mjs or .html files.

If you wish to include files of different extensions like .ts / .tsx or want to use different template engines like handlebars, you can modify the script within package.json as:

"scripts": {
  "start": "node src/index.js",
  "dev": "nodemon src/index.js -e js, hbs, tsx",
  "test": "echo \"Error: no test specified\" && exit 1"
},

adding the necessary extensions after -e in "dev"


Project started on: 27/08/2023

(v1.0) First functional version completed on: 30/08/2023

About

A chat-application made using Node.js, Express and Socket.IO

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors