This project was generated with TypeScript in base this article
Go to chat: https://www.chat.extrasistemas.com/
Youtube: https://www.youtube.com/watch?v=ZfJfoo9HcTI
https://github.com/linuxcarl/chat-socket-io-typescript/tree/master/client
Installation
cd server
npm install
Run test
npm run test
Develop
If you want run mode develop, run the next line:
npm run dev
Compile app to js
If you want run mode production, first compile app, run the next line:
tsc
Production
If you want run mode production, run the next line:
npm run start
This project uses a number of open source package to work properly:
-
TypeScript - extends JavaScript by adding types.
-
node.js - evented I/O for the backend
-
Express - fast node.js network app framework [@tjholowaychuk]
-
SocketIO - Socket.IO enables real-time bidirectional event-based communication.
-
tslint - Find and fix problems in your TypeScript code.
-
Prettier - An opinionated code formatter.
-
Husky - Husky can prevent bad git commit, git push and more 🐶 woof!