Full-Stack Web Development with Vue.js and Node
Introducing MEVN Chapter 1 To learn more about the vocabulary used in GitHub, visit https://help. github.com/articles/githu ...
Introducing MEVN Chapter 1 Add a commit so that we have a history of this change of code: $ git commit -m 'Initial Commit' No ...
Introducing MEVN Chapter 1 Summary In this chapter, we learned what an MEVN stack is. We learned what Node.js, npm, and MongoDB, ...
2 Building an Express Application Express.js is a Node.js web application framework. Express.js makes it easier to use Node.js a ...
Building an Express Application Chapter 2 We can modify this structure as per our needs and requirements as well. This is very h ...
Building an Express Application Chapter 2 Understanding Node.js Before diving into Node.js programming, let's first look into so ...
Building an Express Application Chapter 2 Now, run the file with this command: $ node tutorial.js We will see an output that say ...
Building an Express Application Chapter 2 When we type that URL in our browser, we should be able to see this: That's how Node.j ...
Building an Express Application Chapter 2 Process Events If you want to look into more details about each of the core modules, y ...
Building an Express Application Chapter 2 Introducing Express.js Express.js is a minimalist server-side web framework for Node.j ...
Building an Express Application Chapter 2 The output is as follows: The command creates a lot of files and folders in our applic ...
Building an Express Application Chapter 2 views: This folder contains all of our view files that are going to be rendered in the ...
Building an Express Application Chapter 2 This is because these are the Express.js dependencies for any application. This means, ...
Building an Express Application Chapter 2 Rename the files in the views folder: error.jade to error.pug index.jade to index.pug ...
Building an Express Application Chapter 2 app.listen(3000, function() { console.log('listening on 3000') }) module.exports = app ...
Building an Express Application Chapter 2 res.render('index', { title: 'Express' }); }); module.exports = router; This means tha ...
Building an Express Application Chapter 2 Response object After receiving the request on req variable, the res object is somethi ...
Building an Express Application Chapter 2 It is not necessary to implement the MVC platform in the application we build. The Jav ...
Building an Express Application Chapter 2 After that, in our app.js, we need to include our controller files. To do that, we fir ...
Building an Express Application Chapter 2 // Include controllers fs.readdirSync('controllers').forEach(function (file) { if(file ...
«
1
2
3
4
5
6
7
8
9
10
»
Free download pdf