Two projects one webpack package

File dependency is complex, static resource request efficiency is low, modularization support is not friendly, browser compatibility with advanced JS is low? That's the time to learn about webback I. a brief understanding of webpack (1) concept Webpack is a static module packaging builder for JavaScript applications. When processing an app ...

Posted by kubis on Tue, 17 Dec 2019 20:36:34 -0800

Node.js automated test (Mocha+Istanbul)

Based on Express, Mocha + Istanbul 1. Unit Test 1.1 Install Mocha npm i -D mocha 1.2 Create test/test.js var assert = require('assert'); describe('Array', function() { describe('#indexOf()', function() { it('should return -1 when the value is not present', function() { assert.equal([1,2,3].indexOf(4), -1); }) ...

Posted by wama_tech on Sun, 15 Dec 2019 08:45:30 -0800

node + express learning one (project construction)

Make sure node and express are installed before you start 1. Initialization project express ***(***Your project name) cd *** npm install(Download dependency) Startup project: Run Command: node. / bin/www, port 3001 is my own change, in / bin/www (it is recommended to use WebStorm to run, because we need to use it to write code) 2. Coding Open ...

Posted by UmneyDurak on Sun, 15 Dec 2019 07:01:48 -0800

Node learning note function self calling and crud addition, deletion, modification and query

Function self calling In general, the purpose of taking a function as a parameter is to obtain the asynchronous operation results inside the function The following code is an example of synchronization function add (x + y) { // Function method return x + y } add(10, 20) // Calling function The following code is an asynchronous function ...

Posted by utdfederation on Thu, 12 Dec 2019 00:54:57 -0800

Let Vue also use Redux

Last weekend, I saw the source code of Vuex. I was inspired. Why are all Vuex. So Dongtong wrote a plug-in one afternoon to help Vue use Redux Gayhub Url Vue-with-Redux This is a plug-in used to help Vue use Redux to manage state. Redux is a very popular state management tool. Vue with Redux provides you with a way to use Re ...

Posted by AstroTeg on Tue, 10 Dec 2019 04:23:05 -0800

AngularJS integrated wangedit rich text editor

Recently, the project requirements built with AngularJS2(ng alain) need rich text. Many of them are found online, either too heavy or without detailed integration steps. Below is a detailed list of how I can integrate wangedit into my project (project name myPro). Specific operation steps Operation steps reference: https://github.com/fengnovo/ ...

Posted by Hellusius on Mon, 09 Dec 2019 13:34:16 -0800

Nodejs device is connected to alicloud IoT platform

1. Preparation 1.1 register alicloud account Use personal Taobao account or cell phone number to open the account of Ali cloud, and pass the real name authentication (can be certified by Alipay). 1.2 free IoT Suite Product official website https://www.aliyun.com/product/iot 1.3 software environment Nodejs installation https://nodejs.org/en/dow ...

Posted by paradigmapc on Sun, 08 Dec 2019 19:48:06 -0800

pm2 remote Publishing

Create configuration item Create a new pm2 configuration file ecosystem.config.js in the root directory of your git warehouse, as shown in the comments, or execute the pm2 init initialization file ecosystem.config.js. module.exports = { apps : [{ //pm2 name name: "nextcn", //pm2 run script script: "./app.js", //environment va ...

Posted by mligor on Sun, 08 Dec 2019 19:14:23 -0800

Construction of Cesium Vue development environment

Recently, I was asked how to integrate cesium in vuejs. The official website I first thought of should have a tutorial. There is a special talk on the official website about Cesium and Webpack. According to the instructions on the official website, we set up a Demo to record the process of stepping on the pit. I. vue project creation, using vue ...

Posted by austingecko on Sun, 08 Dec 2019 11:55:34 -0800

Table drag Sortable

Sortable is a JavaScript library for reordering drag and drop lists on modern browsers and touch devices. No jQuery is required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, such as Bootstrap Function Description: Javascript library for reordering drag and drop lists. (__JavaScript library for reorderable drag ...

Posted by morphius on Sat, 07 Dec 2019 21:01:55 -0800