Tag : 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

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

Read more