How to Use Node.js for Your Website and Application
In this post, we will install and configur Ubuntu 16.04 and Alibaba Cloud Elastic Compute Service (ECS) using Node.js.
Join the DZone community and get the full member experience.Join For Free
How to Build a TCP Application With Node.js on ECS
Before you start the process, you will need a machine running a Linux/Unix distribution such as Ubuntu or macOS, a code editor/IDE with Node.js installed on it, and a basic working knowledge of Node.js.
To begin, create a directory where you would like to store your application. For this tutorial, we will create our application in
In this tutorial, we will be doing most of our work with the terminal and also, use
nano editor in the terminal ensuring the process remains the same for all the platforms.
To start, open your terminal:
How to Create a Blogging Website With Ghost on Ubuntu 16.04
In this guide, we will install and configure Ghost on your Ubuntu 16.04 Alibaba Cloud Elastic Compute Service (ECS) using Node.js.
How to Upload Files to Alibaba Cloud Object Storage with Node.js
npm install ali-oss
Noteworthy, there are two modes that you can choose from; synchronous and asynchronous modes.
To use in synchronous mode, you may additionally use it in conjunction with co. Install co like so:
npm install co
The asynchronous mode supports callback.
There are some documentation may be useful to you.
[Vulnerability notice] CVE-2017-5941: Remote code execution vulnerability in Node.Js deserialization]
By default, Node.js logs are printed to the console, which makes the data collection and troubleshooting inconvenient. By using Log4js, logs can be printed to files and log format can be customized, which is convenient for data collection and coordination.
Published at DZone with permission of Leona Zhang. See the original article here.
Opinions expressed by DZone contributors are their own.