The first goal of this project was to experiment with web sockets (socket.io), whilst also getting to grips with TypeScript. The other one was to actually write the algorithm for the look-and-say sequence, as part of a long-term challenge to become better at problem-solving and JavaScript.
It was super-fun to understand how web sockets work, as well as practicing the OOP approach to writing code.
This is currently a work-in-progress project with a few more things on my to-do list to make it fully functional, but I will be sure to update this file once I get to a version that I am happier with.
Install packages:
Install TypeScript globally:
Run the app locally:
Runs the app in the development mode at http://localhost:3000
At the moment, after any .ts file change, the JavaScript needs to be recompiled manually. Navigate to the root of the project and run this command in a new console tab. Be sure you have TypeScript installed globally.