D3.js Deploying node Environment development

Source: Internet
Author: User

summarize the installation process for a D3.js deployment node environmentPreparation phase:

first, the computer to install the node environment, this stage filtered out, if the node environment is not installed, then do not play based on the node environment and other things.

Build the Environment:

I create a project directory D3node in my own F: System disk, and then create a Package.json file that is configured inside

Where: The Dependencies field describes the Library runtime dependencies that your project uses, and they can make your project work in the browser. There is only one dependency in D3, D3 is the name D3 published in the NPM Library, where version number 3.x indicates that the project can be compatible with any version greater than 3.

The Devdependencies field describes the dependencies of the library at development time. This means that the library files listed in this field will be used only when building the project, and will not be used when running JavaScript.

Once the above configuration information is complete, go directly to the project catalog and enter NPM install to automate the installation according to Package.json.

This time in my D3node folder has downloaded the files used by D3, and then build the HTTP service

http Server:

because the operating system is not used, the HTTP server package is different, such as Tomcat, there is a version of Windows, there is a Linux version. The way to build a server is different, not to mention, I now want to build a server environment based on node

The first step is to install the Http-server module

I direct global installation, NPM install Http-server-g

If the service you want to start is successful: Http-server.

The boot succeeds with port 8080. Note: If you run the change command in a Linux/unix/mac operating system, sudo mode or root permission is required to run


D3.js Deploying node Environment development

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.