From the course: Learning 3D Graphics on the Web with Three.js

Unlock the full course today

Join today to access over 24,900 courses taught by industry experts.

Set up the environment

Set up the environment

- [Instructor] When using Three.js, you will need to serve your HTML file through a server to be able to load in some of the assets that we will be using in this course. If you are looking for a server that is easy to set up, you can use Python to start a simple HTTP server using this comment. This comment assumes you are using Python 2. If you are using Python 3, this is the comment that you should use, or you could install third party solutions as well, I'm using a tool called live-server that I installed through MPM. It supports live reloading of files whenever there is a change in them. You can find that tool on this page. You will have the server running at the root of the project files. We can start live-server by typing live-server inside the terminal, I will have the server running at the root of my project files. If you want to use Three.js in production, you can find the minified version of the library on their GitHub page. A minified file is smaller in size and has more…

Contents