A Node online service migration

The original Node service needs to be migrated to a new host, so a new environment and corresponding migration scheme need to be prepared. Node installation Manual installation Download address: https://nodejs.org/en/download/ Select: Linux Binaries (x64) right click Copy download link # Download ...

Posted on Sun, 24 May 2020 08:37:40 -0400 by mpiaser

Node.js Article 14: JWT-based interface security verification

Security authentication methods for interfaces Traditional Interface Security Authentication Methods Internet services cannot be separated from user authentication.The general process is as follows. Users send user names and passwords to the server. After validating the server, relevant data, such as user roles, logon times, and so on, ar ...

Posted on Thu, 21 May 2020 14:08:47 -0400 by JimiLives

Platform-Micro Component State Management in vivo Wukong Activity

This article was first published on vivo Internet Technology WeChat Public NumberLinks:   https://mp.weixin.qq.com/s/1DzTYIExVbK0uE_Oc7IHYw Author: Wukong Radio R&D Team Wukong Event Platform series of exciting articles in the past: <Reveal how vivo creates a platform-launch for tens of millions of DAU events "Mainly tells y ...

Posted on Wed, 20 May 2020 22:31:44 -0400 by Labbat

Use webpack to package components and base libraries and publish them to npm

In addition to packaging applications, webpack can also be used to package js libraries and some custom component libraries. Just package js library and component library rollup Packing is also a good choice. Let's implement a simple Packaging example, which needs to meet the following functions: Package compression Version (X min.j ...

Posted on Wed, 20 May 2020 10:56:21 -0400 by Tubby

Self made scaffold

After learning the basis of Webpack, you will always be confused when you check the scaffold written by others. Later, you can check all kinds of materials on the Internet, modify them while referring to them, and complete a set of simple Scaffolding (uploaded to GiuHub and npm I have learned from Create React App (CRA) directory structure (as ...

Posted on Mon, 18 May 2020 22:56:33 -0400 by Vertical3

K8s Build npm Private Active verdaccio

This article is similar to my previous "k8s Build a pip private source devpi":Prepare knowledge: Need to be familiar with building docker mirrors, k8s building, deploying applications, deployment (nodeSelect, node affinity, etc.), service, ingress writing yml files, not familiar with the first to play a basic look 1. Private docker m ...

Posted on Fri, 15 May 2020 14:16:15 -0400 by FlashbackJon

Node.js Part 3: server programming

Chapter 1: basic concepts of server 1.1 - composition of the website Web applications are mainly divided into two parts: client and server. Client: the part that runs in the browser is the interface program that the user sees and interacts with. Build using HTML, CSS, JavaScript. Server side: the part running in the server, responsible for sto ...

Posted on Mon, 11 May 2020 09:51:55 -0400 by warik

Use of Ethereum smart contract NodeJS/Web3

1, Overview Running environment: Node.js, npm, Truffle, Solidity, etc root@keke:~/go-ethereum# node -v v8.9.4 root@keke:~/go-ethereum# npm -v 5.7.1 solidity installation # npm install -g solc --save Install the development framework Truffle4 of solidity # npm install -g truffle --save Install the development client and simulat ...

Posted on Sun, 10 May 2020 23:35:58 -0400 by turtlekid8

How to install and configure webpack?

Global install first: npm i webpack webpack-cli -g Initialize in working folder npm init -y A package.json file will appear Create a new configuration file in the working folder root, js format webpack.config.js Write in configuration file var path = require('path'); var HtmlWebpackPlugin = require('html-webpack-plugin'); //Auto import plug-i ...

Posted on Sat, 09 May 2020 12:22:56 -0400 by sottwell

Configuring eslint in vscode

Install Nodejs and then eslint Use global installation: npm install -g eslint npm install -g eslint-plugin-html After installation, we use the "eslint --init" command to generate a configuration file in the user directory (or anywhere you like): ". eslintrc.js“ After executing the command, we can select the corresponding ...

Posted on Tue, 05 May 2020 10:25:15 -0400 by TimUSA