- Real-Time 3D Graphics with WebGL 2
- Farhad Ghayour Diego Cantor
- 103字
- 2021-06-10 19:43:00
Setting up a Web Server
Now that we're fetching assets from a server, we need to serve our application by using a server. If you do not have a web server, we recommend that you install a lightweight web server from the following options:
- Serve: https://github.com/zeit/serve
- Lighttpd: http://www.lighttpd.net
- Python Server: https://developer.mozilla.org/en-US/docs/Learn/Common_questions/set_up_a_local_testing_server
Hosting Examples
Although any web server will be able to serve these examples, serve provides simplicity and great functionality. That being said, be sure to run your server from the root of the examples directory, since the common directory is a shared dependency across chapters.
Although any web server will be able to serve these examples, serve provides simplicity and great functionality. That being said, be sure to run your server from the root of the examples directory, since the common directory is a shared dependency across chapters.