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

  • Learning D3.js Mapping
  • Thomas Newton Oscar Villarreal
  • 187字
  • 2021-08-06 19:42:42

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
主站蜘蛛池模板: 徐闻县| 甘洛县| 河间市| 铁岭县| 江达县| 东乡县| 金塔县| 山东省| 尉犁县| 侯马市| 老河口市| 库车县| 阳泉市| 富锦市| 英山县| 江口县| 乌恰县| 炎陵县| 密山市| 阜新市| 怀化市| 于都县| 寿光市| 铜山县| 怀来县| 班玛县| 渝中区| 临清市| 务川| 遂溪县| 馆陶县| 丰都县| 扬州市| 阜康市| 辉县市| 江口县| 丹阳市| 清涧县| 凌源市| 宁波市| 松溪县|