官术网_书友最值得收藏!

Quick bootstrap

If you're already familiar with working in D3 or web development, go ahead and set up your workstation based on the following commands by jumping directly to the Step-by-step bootstrap section.

A detailed explanation of this chapter's concepts will be covered if further instructions are needed. By the end of the chapter, you should feel comfortable in using the Quick bootstrap section as a convention throughout the book. The following instructions assume that Node.js and npm are already installed on your system.

Type in the following in the command line:

# Install a light webserver
npm install -g http-server

# Install topojson
npm install -g topojson

# Clone the sample code with included libraries
git clone --depth=1 git@github.com:climboid/d3jsMaps.git

# start the project
cd d3jsMaps
http-server

Tip

Downloading the example code

You can download the example code files from your account at http://www.packtpub.com for all the Packt Publishing books you have purchased. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.

Now, open your web browser to http://localhost:8080/chapter-1/example-1.html, and you should see the following map:

Quick bootstrap
主站蜘蛛池模板: 茌平县| 南丹县| 泸定县| 武定县| 高青县| 巴马| 钟山县| 屯门区| 合江县| 金昌市| 体育| 泰顺县| 余姚市| 杭州市| 高阳县| 绍兴县| 南木林县| 西贡区| 阿拉善左旗| 永泰县| 垦利县| 朔州市| 荣成市| 高州市| 遂川县| 岳西县| 遵义县| 杂多县| 宣化县| 宝坻区| 永州市| 贵德县| 镇江市| 诏安县| 山东| 清原| 定西市| 中西区| 竹山县| 太和县| 乌鲁木齐县|