Giter Site home page Giter Site logo

packtpublishing / vue-js-2-web-development-projects Goto Github PK

View Code? Open in Web Editor NEW
222.0 19.0 143.0 571 KB

Vue js 2 Web Development Projects, published by Packt

License: MIT License

HTML 2.04% JavaScript 37.95% CSS 1.58% Vue 25.75% Less 1.96% Stylus 30.72%

vue-js-2-web-development-projects's Introduction

Vue.js 2 Web Development Projects

This is the code repository for Vue.js 2 Web Development Projects, published by Packt. It contains all the supporting project files necessary to work through the book from start to finish.

About the Book

Do you want to make your web application amazingly responsive? Are you unhappy with your app's performance and looking forward to trying out ways to make your app more powerful? Then Vue.js, a framework for building user interfaces, is a great choice, and this book is the ideal way to put it through its paces.

This book's project-based approach will get you to build six stunning applications from scratch and gain valuable insights in Vue.js 2.5. You'll start by learning the basics of Vue.js and create your first web app using directives along with rich and attractive user experiences. You will learn about animations and interactivity by creating a browser-based game. Using the available tools and preprocessor, you will learn how to create multi-page apps with plugins. You will create highly efficient and performant functional components for your app. Next, you will create your own online store and optimize it. Finally, you will integrate Vue.js with the real-time Meteor library and create a dashboard showing real-time data.

By the end of this book you will have enough skills and will have worked through enough examples of real Vue.js projects to create interactive professional web applications with Vue.js 2.5.

Instructions and Navigation

All of the code is organized into folders. Each folder starts with a number followed by the application name. For example, Chapter02.

The code will look like the following:

<top-bar :turn="turn" :current-player-index="currentPlayerIndex"         
      :players="players" />

To follow this book, you will only need a text or code editor (Visual Studio Code and Atom are recommended) and a web browser (preferably the latest version of Firefox or Chrome for the development tools).

Related Products

Download a free PDF

If you have already purchased a print or Kindle version of this book, you can get a DRM-free PDF version at no cost.
Simply click on the link to claim your free PDF.

https://packt.link/free-ebook/9781787127463

vue-js-2-web-development-projects's People

Contributors

dikshawakode avatar dominicpereira92 avatar packt-itservice avatar packtutkarshr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vue-js-2-web-development-projects's Issues

Chapter 3 page 74 - getting error `handlePlay is not a function`

I've been stuck near the beginning of chapter 3 page 75- 76 for some time now.

I've been following the steps, but cant seem to get the handlePlay method to work when assigning a vue click event to the card component.

I'm seeing the following error in Chrome

proxyConsole.js:72 [Vue warn]: Property or method "play" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <Card>
       <Root>
function.console.(anonymous function) @ proxyConsole.js:72

and

[Vue warn]: Invalid handler for event "click": got undefined

found in

---> <Card>
       <Root>

I've ported the current state of my app to code sandbox - https://codesandbox.io/s/9ov72w3pxo?module=%2Fmain.js

hopefully someone can help!

Chapter 5 page 169

await fetch(${baseUrl}${url}) should be await fetch(${baseUrl}/${url})

chapter_05 error

The fifth chapter server login request has been unsuccessful, prompting Failed to fetch, please help me answer.

img

server/src/router.js

app.post('/login', (req, res, next) => {
    if (req.user) {
      res.status(403).send('Unauthorized')
    } else {
      next()
    }
  }, passport.authenticate('local', {
    failWithError: true,
  }), (req, res) => {
    sendUserInfo(req, res)
  }, (err, req, res, next) => {
    res.status(403).send(err)
  })

In Chapter 2, marked lib doesn't work

Hi, I'm a newbie in front-end dev, and I met following issue when followed example codes:
In chapter 2, it implemented markdown by a marked lib. But when I tried it in my example, I found PrerenceError: require is not defined marked:1:15 error in my web dev tool. I tried to fix it by import require.js in my html page, but it still can't load required module Lexer.js in marked lib.
How to fix codes or is there any other available markdown lib?

Chapter 3. transition-group's v-move example doesn't work

Issue appears in the part about animation when delete a card. But only adding the transition-group and CSS for card-move class doesn't work. And I found that it needs another CSS configuration to set list element's position as absolute in many examples for transition-group and v-move. I tried it and it worked. Dose it miss the position setting in the book?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.