Un proyecto pequeño y simple sobre la implementación de socket.io, nada mejor que un chat para poder observar una aplicación en tiempo real.
- Node
- Express.js
- Socket.io
- Cookie Parser
- Clona el repo
- En la terminal:
npm install
- Para iniciar el proyecto en la terminal:
npm start
- Si no tienes definido una variable global PORT en sistema, el puerto por defecto del proyecto sera 9300
- Desde tu navegador accede a localhost:9300 y listo prueba el chat con Socket.io
Notas: Es una versión muy verde y le ire haciendo algunas mejoras.
It's a little simple project where I implement socket.io for make realtime app of web chat
- Node
- Express.js
- Socket.io
- Cookie Parser
- Before all you need to need clone the repo
- Put in the therminal the next command:
npm install
- Next for starting the app in the console put:
npm start
- if you don't have definend enviroment variable PORT the default port is 9300
- Finally in a web explorer you can acces to next url localhost:9300 to prove the web chat
Notes: This is an alpha app version and has a lot improvement in the next versions