Server Side Dependency Imports
This is predominantly a Three.js course, but we are writing the code using TypeScript, and we are also hosting the code though a NodeJS server. So we will also learn about those two things as well and how to merge these three technologies so that they work effortlessly together.
First of all, lets get the server side code running first so that it at least serves some code, and then move onto solving the problems of the client in the next video.
See Video for all npm commands and the order of execution.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
At the end of this section, all imports for the
server.ts will be properly linked, and we can then compile and view the project so far.
Open a browser and visit http://127.0.0.1:3000/