- 366 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Full-Stack Web Development with Vue.js and Node
About This Book
Bring the frontend and backend together with Vue, Vuex, and Node.js
Key Features
- Construct modern web applications with Node 10, Express.js, MongoDB, and Vue
- Leverage the latest web standards to increase code performance, readability, and cross-compatibility
- Harness the power of the JavaScript ecosystem to effectively run, build, and test your full stack applications
Book Description
Isomorphic JavaScript was the buzzword of the year 2017, allowing developers to utilize a single language throughout their web development stack and build cost-effective and scalable applications. MEVN is a one such modern web development stack consisting of web applications such as MongoDB, Express.js, Vue.js, and Node.js. Hands-On Full-Stack Web Development with Vue.js 2 and Node.js leverages the harmony of these technologies to help you create full-stack web applications.
Starting with the core frameworks, this example-based guide explains all the key concepts of frameworks, how to set them up properly, and how to use popular modules to connect them together and make them work cohesively. You will learn all this with the help of real-world examples. In addition to this, you will be able to scaffold web application architecture, add an authentication layer, and develop the MVC structure to support the development of your application. You'll explore how to create data models for your applications and then write REST APIs by exposing your data model to your application.
Solely orientated towards building a full, end-to-end application using the MEVN stack, this book will help you understand how your application development grows.
What you will learn
- Build an application with Express.js
- Create schemas using Mongoose
- Develop a single-page application using Vue.js and Express.js
- Create RESTful APIs using Express.js
- Add test cases to improve the reliability of the application
- Learn how to deploy apps on Heroku using GitHub
- Add authorization using passports
Who this book is for
If you are a web or a full-stack JavaScript developer, and have tried your hand at traditional stacks such as LAMP, MEAN or MERN, or wish to explore a new stack with modern web technologies, then this book is for you. Prior knowledge of HTML, CSS, and JavaScript would be an added advantage.
Frequently asked questions
Information
Building the Real Application
- A home page that lists all the movies with other attributes
- There will be an admin section where the administrator will be able to add movies
- The user will be able to log in and sign up
- The user will be able to rate a movie
- There will be a movie profile section where the logged-in user can rate the movie
Introducing Vue.js
Installing Vue.js
Including it in a script tag
<script type="text/javascript" src="vue.js"></script>
Using Content Delivery Network (CDN) links directly
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/vue.js"></script>
Using Vue.js as an npm package
$ npm install vue
Introducing vue-cli
$ npm install -g vue-cli
Initializing projects with vue-cli
$ vue init webpack movie_rating_app
Table of contents
- Title Page
- Copyright and Credits
- PacktPub.com
- Contributors
- Preface
- Introducing MEVN
- Building an Express Application
- Introducing MongoDB
- Introducing REST APIs
- Building the Real Application
- Building Authentication with passport.js
- Building OAuth Strategies with passport.js
- Introducing Vuex
- Testing an MEVN Application
- Going Live
- Other Books You May Enjoy