Server and Client prototype using WebSockets and TypeScript language.
Make sure you have the following installed:
- Node.js
- Git
- Angular CLI
git clone https://github.com/luixaviles/websockets-typescript
cd websockets-typescript
To run server locally, just install dependencies using npm
or yarn
.
cd server
npm install
npm run webpack
npm run start
The socket.io
server will be running on port 3000
Open other command line window and run the following commands:
cd client
npm install
ng serve -o
Your default browser will be opened in http://localhost:4200
MIT