• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. Developer Guide (Node.js SDK)
  4. Quick Start
  5. Installing the SDK

Installing the SDK

The following uses OBS Node.js SDK of the latest version as an example:

  1. Download the OBS Node.js SDK development package by referring to Downloading the SDK.
  2. Decompress the development package to obtain folder examples (sample code), folder lib (SDK source code), file package.json (dependency configuration file), and file README.txt (feature description file of SDK versions).
  3. On the command-line interface (CLI), go to the directory under which the SDK development package is decompressed, and run the npm install command to install dependency libraries. The node_modules folder will be generated.
  4. (Optional) In the Eclipse JavaScript project, import the source code: Open Eclipse JavaScript IDE and choose Import > Projects from Folder or Archive. For Import source, select the directory under which the SDK development package is decompressed.
NOTE:
  • If you use npm to install dependencies and the network malfunctions, use proxies.
  • After the installation, the directory structure is similar to the following:

    ├── examples

    ├── lib

    ├── node_modules

    ├── package.json

    └── README.txt