author QQ:1095737364    QQ Group :123300273     Welcome to join !

1. Add modules : Save to package.json In file ;
# npm install vue --save
    Be careful : If you have the package.json Define the module version , Use the following command to install the module :
# npm install
3. change ejs A template for html Templates
app.set('views', path.join(__dirname, 'views'));
app.engine('.html', require('ejs').__express);
app.set('view engine', 'html');
4. Set up static File path :
app.use('/public', express.static(__dirname + '/public'));
 

nodejs More articles on knowledge summary

  1. Nodejs The gospel of beginners

    Nodejs+Express+MongoDb Build a personal blog   001 I like to break down tasks or work into workflow to complete , as follows , We will follow the process to elaborate later , I hope I can do it for Nodejs Beginners and promotion Nodejs Make some effort . n ...

  2. About node.js Miscellany

    https://gitlore.com/page/gitlore-git/nodejs/index.html[node.js Chinese document ] //////    https://gitlore.com/in ...

  3. node How many threads

    An article builds your NodeJS Knowledge system

  4. thorough Node.js Process and subprocess of : From documentation to practice

    Welcome to your attention Github Warehouse , This is a self 2018 The front end that has been continuously updated since & Algorithm open source blog . So far node Study .js Interview notes .css3 Animation design .webpack4 Series of tutorials . Design patterns . The finger of the sword offer·js Edition, etc. ...

  5. 1.nodejs Authoritative guide -- Basic knowledge of

    1. Basic knowledge of 1.1 Global scope and function 1.1.1 Global scope stay nodejs in , Defined a global object , representative nodejs Global namespace in , Any global variable . Function or object is a property value of the object 1.1 ...

  6. Nodejs Learning notes ( 6、 ... and )--- Node.js + Express Build a website to prepare knowledge

    Catalog Preface newly build express Project and customize routing rules How to extract the public part of a page ? How to submit a form and receive parameters ? GET The way POST The way How to encrypt strings ? How to use session? How to use cookie ...

  7. elementary analysis nodeJS Medium Crypto modular , Include hash Algorithm ,HMAC Algorithm , Knowledge of encryption algorithms ,SSL agreement

    node.js Of crypto stay 0.8 edition , The main function of this module is encryption and decryption . node utilize OpenSSL library (https://www.openssl.org/source/) To implement its encryption technology , This is because ...

  8. Nodejs Learning notes ( 6、 ... and )—Node.js + Express Build a website to prepare knowledge

    Preface There are five chapters ahead Node.js Learning from , We can start to build a website application , First use this article to learn some knowledge about building websites ! It's mainly basic stuff ... How to create routing rules . How to submit a form and receive the value of a form item . How to give secrets ...

  9. 【Todo】React & Nodejs Study & Event driven , Non blocking IO & JS Knowledge stack :Node Mainly ,JQuery Supplemented ,Bootstrap & React As a supplement , Other such as Angular Just know the purpose

    JS Knowledge stack :Node Mainly ,JQuery Supplemented ,Bootstrap & React As a supplement , Other such as Angular Just know the purpose I'm learning today ReactJS and NodeJS, See about ReactJS This article of ...

Random recommendation

  1. mysql use drop and delete Method to delete the user's distinction

    I'm learning drop Method to delete a user , According to the book, the operation has not been successful , Later, I checked some other information on the Internet , To understand drop Methods , Post it to share with you . ( Method 1 )drop user  user name ; grammar :drop user  use ...

  2. java The difference between decorator mode and inheritance

    Decorator mode goal Put a lot of functions to be realized , Load on subclasses , Class inheritance , It looks bloated , Decorating the pattern is without changing the original class file and using inheritance , Dynamically extend the functionality of an object by creating a wrapper object , More flexible than subclassing Decorator mode ...

  3. Deconstruction and assignment of variables ////////////z

    Deconstruction and assignment of variables Deconstruction and assignment of arrays Object's deconstruction assignment Deconstruction and assignment of strings Deconstruction of values and Booleans Deconstruction and assignment of function parameters Parenthesis question purpose Deconstruction and assignment of arrays Basic usage ES6 Allow to follow certain mode , Extract values from arrays and objects , ...

  4. HDU-1828 Picture( Scan line )

    The main idea of the topic : Give some rectangles , Find the side length of the outline . Topic analysis : It's similar to finding the area . Press down to scan up , It's still the bottom edge , Delete above . But maintain the number of vertical edges at the same time , The contribution of each scan to the answer is the change of the total coverage length on the scan line plus the increment of the vertical edge . The total coverage is long ...

  5. 【HDU 5456】 Matches Puzzle Game ( digit DP)

    Matches Puzzle Game Problem Description As an exciting puzzle game for kids and girlfriends, the Mat ...

  6. JDK-windows7 Environment variable configuration - Pro test version as well as HelloWorld

    1. Download and install jdk, Suppose to install 1.6.0_45 Version to C:\Program Files\Java, After installation , The directory structure is : C:\PROGRAM FILES\JAVA├─jdk1.6.0_45│ ├─ ...

  7. Kafka 0.8 Source code analysis —ZookeeperConsumerConnector

    1.HighLevelApi High Level Api It's a multithreaded application , With Topic Of Partition Quantity centered . The rules of consumption are as follows : One partition Can only be the same ConsumersGrou ...

  8. WordCount Homework modification

    WordCount Homework modification github Address Requirement specification Basic needs Functional specifications PSP Code implementation Total number of characters query Word count query Row number query summary One . Requirement specification 1. Basic needs WordCount The needs of our country can be summarized as : ...

  9. .net core xss Attack defense

    XSS The full name of attack is cross site scripting attack , It's for not cascading style sheets (Cascading Style Sheets, CSS) Confusion of abbreviations , Therefore, the cross-site scripting attack is abbreviated as XSS,XSS It's a kind of web Computer security vulnerabilities in application , It allows malice ...

  10. LVS+OSPF+FULLNAT Cluster architecture

    OSPF:OSPF(Open Shortest Path First Open shortest paths take precedence ) It's an internal gateway protocol (Interior Gateway Protocol, abbreviation IGP), Used in a single autonomous system (aut ...