Ashoka CS-1340 A4P2
Project structure
The project is written in NodeJS + typescript
app.ts
contains all the logic for the assigment.app-data.json
contains the data to run the serversocket/
contains the logic for starting a TCP server & client. It also contains the code to setup a random binary boundary to differentiate between messagestests/
contains the tests for the correctness of the server/client comms
Running the project
- Clone
- In terminal, run
yarn
ornpm install
- To run the server app, run
yarn start:server
ornpm run start:server
- To run a client app, run
yarn start:client
ornpm run start:client
- To run both in the same process, run
yarn start
ornpm run start
Also:
- The app server supports concurrent access to clients
- The app supports clients from other other computers and LANs