Tag:node.js

  • Crawler crawls JSON HTML data

    Time:2019-8-24

    In the past two weeks, I have been busy climbing some data for the company, and the speed of writing has declined a little. I am expected to finish climbing today and sum up my experience. In fact, our company used to specialize in crawlers, so we don’t need to work on the front side. […]

  • Brief description of Vue project deployment

    Time:2019-8-24

    Now vue-cli is the framework that front-end engineers must meet (not one of them). Many front-end engineers will only develop Vue projects, but will not deploy them. Because most of the deployment work of company projects is handed over to their superiors or project managers, the knowledge about deployment may not be well understood by […]

  • Adding Router Temperature to Homeassistant and Homekit via MQTT Protocol

    Time:2019-8-24

    Preface Recently, I started a Feixin K3 router, but the chip of Botong is so hot that I want to know the temperature of the router at any time. So I implemented a set of programs to add the temperature of the router to Homeassistant and Homekit through MQTT. Get ready K3 router with root […]

  • Vscode debugging Vue node

    Time:2019-8-24

    1. vscode debugging Vue project Quoted text launch.json { “type”: “chrome”, “request”: “launch”, “name”: “Launch Chrome against localhost”, “url”: “http://localhost:8090”, “webRoot”: “${workspaceFolder}/src”, “sourceMaps”: true, “sourceMapPathOverrides”: { “webpack:///./*”: “${webRoot}/*”, “webpack:///src/*”: “${webRoot}/*”, “webpack:///*”: “*”, “webpack:///./~/*”: “${webRoot}/node_modules/*”, “meteor://💻app/*”: “${webRoot}/*” } } vue.config.js Vscode debugging node project launch.json Direct F5 or Fn + F5 operation can be debugged { […]

  • [email protected] series of tutorials [01]-zero configuration

    Time:2019-8-23

    Core concepts Web pack is a front-end resource module packaging tool, which can package and output static resources recognized by browsers according to the dependencies of modules. It can pack multiple files into one to reduce http requests. Zero configuration startup Beginning with webpack 4.0.0, webpack can be started with zero configuration. The webpack command […]

  • Antmove Origin – A Useful Multi-terminal Solution for Small Programs

    Time:2019-8-23

    Original address: https://ant-move.github.io/we… Antmove is an auxiliary tool for small program development. It is dedicated to solving the problem of small program cross platform development. With the help of Antmove, you only need to write a set of WeChat applet code (or Alipay applet code) to achieve the purpose of running on multiple platforms. The […]

  • Locating cyclic dependencies in JavaScript/TypeScript using DPDM

    Time:2019-8-23

    When writing large-scale projects, you will accidentally step into the pit of direct circular dependency. The so-called direct circular dependency refers to the situation that other members of the module factory function have direct calls to other modules that depend on themselves. For example: Suppose there are two modulesa.jsandb.jsAmong them,a.jsThe contents are as follows: const […]

  • [Step-By-Step] Weekly Interview Question & Answer Summary / 01

    Time:2019-8-22

    About [Step-By-Step] There are no miles without cumulative steps. Step-By-Step (click to enter the project) is my2019-05-20Initial project, project vision: step by step, quantitative change causes qualitative change. Step-By-Step only publishes interview questions on weekdays, mainly considering that some small partners are busy at work or have travel plans on weekends. Every weekend, I will […]

  • NPM Cool Library: lru-cache Memory-based Cache Management

    Time:2019-8-22

    NPM Cool Library, two minutes a day, learn about a popular NPM library. In order to optimize program performance, we often need to reward data caching, according to the actual situation, we can store data to disk, database, redis and so on. But sometimes the amount of data to be cached is very small, or […]

  • HTTP security header configuration that the front end must know

    Time:2019-8-22

    In this article, I will introduce common security header information settings and give an example. At the end of this article, I’ll introduce an example of security header information settings for common applications and web servers. Content-Security-Policy Content Security Policy (CSP) is often used to prevent cross-site scripting attacks by specifying which resources are allowed […]

  • Node.js+MySQL+Vue full stack combat project

    Time:2019-8-21

    This project is a Node.js-based full stack is a practical project, the goal is to lead readers and friends to start the actual combat. As we all know, the whole stack engineer will have more prospects than the pure front-end. I hope this article can bring some benefits to my friends. The actual combat project […]

  • Doker Jenkins gitlab automatic deployment NodeJs project and env node not foundation solution

    Time:2019-8-21

    I. Jenkins configuration 1. Install NodeJS PluginSearch the plug-in management interface for Node to find NodeJS, install and restart it. After success, the following figure is shown: 2. Configure NodeJS ServerIn the global tool configuration, the following configuration: II. Project Configuration Choose “Building a Free Software Style Project” and configure it as follows:1. Configure git […]