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 ..