1. Function introduction Users can complete registration, login and browse the goods after login. After logging in, the user can purchase and add related products to the shopping cart. Users can add, reduce and delete the goods in the shopping cart. Users can settle the shopping cart goods. 2. Technical Selection This project involves the ..
Install express-ejs-layouts npm install express-ejs-layouts New default layout layout.ejs <!DOCTYPE html> <html> <head> <title><%= title %></title> <% include header.ejs %> </head> <body> <div id=”wrapper”> <!– Navigation –> <% include menu.ejs %> <div id=”page-wrapper”> <div class=”container-fluid”> <%- defineContent(‘pageSection’) %> </div> <!– /.container-fluid –> </div> <!– /#page-wrapper –> </div> <!– /#wrapper –> <!– foot js–> <% include ..
install npm install express-http-proxy –save Use var proxy = require(‘express-http-proxy’); var app = require(‘express’)(); app.use(‘/proxy’, proxy(‘www.google.com’)); docs express-..
brief introduction Definition A Data Query Language for API Calls Core idea The traditional api call usually obtains a complete object assembled by the back end, but the front end may only need to use some fields, and most of the data query and transmission work is wasted. GraphQL provides a brand-new data query method, ..
Project address:https://github.com/jrainlau/mongoose_cru … Write at the beginning This article mainly shares how I use express+mongoose to add, delete, modify and check mongodb. Thank youcnodeThe help of all the excellent articles in the community and the open source project of @airuikun.airuikun/mongoose_crudThe inspiration to me.I have been studying nodejs for less than half a month and have ..
Project address:https://github.com/jrainlau/v … With the release of Vue 2.0, server-side rendering became its hot selling point. Before that, the problems of the first screen loading time and SEO of single-page applications have puzzled developers all the time, and also restricted the use scenario of the front-end framework to a certain extent. The server-side rendering scheme ..
I. research objectives The concept of HTTP2 has been put forward for quite a long time, and articles about http2 on the Internet have also been searched. However, judging from the results of the search, most of the existing articles are biased towards the introduction of http2, and few of them are actually specifically analyzed ..
mongod –dbpath /usr/local/var/mongodb 2018-07-03T10:50:12.444+0800 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify –sslDisabledProtocols ‘none’ 2018-07-03T10:50:12.457+0800 I CONTROL [initandlisten] MongoDB starting : pid=44555 port=27017 dbpath=/usr/local/var/mongodb 64-bit host=huhaifengdeMacBook-Pro.local 2018-07-03T10:50:12.457+0800 I CONTROL [initandlisten] db version v4.0.0 2018-07-03T10:50:12.457+0800 I CONTROL [initandlisten] git version: 3b07af3d4f471ae89e8186d33bbb1d5259597d51 2018-07-03T10:50:12.457+0800 I CONTROL [initandlisten] allocator: system 2018-07-03T10:50:12.458+0800 I CONTROL [initandlisten] modules: ..
For example, many documents recommend redis? What are the advantages and disadvantages of the two? To a large extent depends on the development of peacekeeping operationsredisHigh level or notmongoH..
I want to learn nodeJS and learn the online tutorial. I used express+mongoDB to build a simple blog system. I accidentally did not connect to the Internet and wanted to start the project. The result was wrong. I could not start normally. Everything was normal when the network was connected normally. When the network was ..
Scene descriptionWhen a record needs to be updated, first query the name of the record in theCollectionDoes the already exist in (exclude itself). Logical directionStep 1: Find yourself in the collectionStep 2: Find in the collection according to your own nameStep 3: JudgmentStep 1 _idAndThe _id of Step 2Does it matchStep 4: If the two ..
MongoVUE connection MongoDB3.2.0 available? ? ? ? ? I am now using mongoVUE to connect MongoDB3.0 version 3.0,,, Test can connect successfully, but not, as shown in the figure: I don’t show anything, please tell me what’s going on. I can’t build a new one. I also saw users built with shell, please tell me. ..