上QQ阅读APP看书,第一时间看更新
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.