Category : express

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

Read more

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

Read more

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

Read more

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

Read more