Socket.IO TypeScript Boilerplate
Video Lecture
Description
Note
This section is optional. If you completed all the sections before this, then you already have the project created. This boilerplate is useful if you have chosen to bypass all the preceding sections, or you got stuck, or you have already finished the course, and you would like to use a Three.js TypeScript project template that you are familiar with.
We will need to ensure we have a git client installed.
On Windows we can use Git for Windows.
Test that it is installed,
git -v
It should indicate a version. If it shows an error, then install it from https://gitforwindows.org/
After confirming you have a git client working, then you can then clone the repository from https://github.com/Sean-Bradley/Socket.IO-TypeScript-Boilerplate
git clone https://github.com/Sean-Bradley/Socket.IO-TypeScript-Boilerplate.git
cd Socket.IO-TypeScript-Boilerplate
npm install
npm run dev
Visit http://127.0.0.1:8080
Troubleshooting
You clone and the folder already exists
You try to clone the course boilerplate you get the error,
fatal: destination path 'Socket.IO-TypeScript-Boilerplate' already exists and is not an empty directory.
You can clone into another folder by adding the name it to the end of the clone command.
E.g., to clone into a new folder named socketio-project2
git clone https://github.com/Sean-Bradley/Socket.IO-TypeScript-Boilerplate.git socketio-project2
You would then work in that other folder. E.g.,
cd socketio-project2
npm install
npm run dev