Files
node-realtime-chat-app/package.json
apiboomer e56c743851 Add dotenv support and update server config
Introduced dotenv for environment variable management and created a .env file for port configuration. Updated server to use HOST and PORT from environment, allowing access from all IPs. Modified Socket.io client connection to use window.location.origin for remote server compatibility.
2025-08-27 01:48:09 +03:00

24 lines
481 B
JSON

{
"name": "7-chat-app",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node src/index.js",
"dev": "nodemon src/index.js",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "ISC",
"dependencies": {
"bad-words": "^3.0.4",
"dotenv": "^16.3.1",
"express": "^4.18.2",
"moment": "^2.29.4",
"socket.io": "^4.7.2"
},
"devDependencies": {
"nodemon": "^3.0.2"
}
}