Giter Site home page Giter Site logo

chen-yiyang / dcarn17-quiz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kaine119/dcarn17-quiz

0.0 2.0 0.0 4.48 MB

Quiz for SH ICC Open House Booth Quiz

Home Page: https://chen-yiyang.github.io/dcarn17-quiz

Shell 1.53% HTML 1.74% Vue 61.94% JavaScript 34.79%

dcarn17-quiz's Introduction

reuse the template for dcarn17-quiz

Quiz for D'Carn 2017

Build Status

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
npm run build

For detailed explanation on how things .vue components work in general, consult the docs for vue-loader.

The components

  • App.vue: the main container of the app

    • keeps questions sourced from assets/data.js
    • hosts the question counter and score
    • in charge of checking whether choice (from Question.vue) is correct, and to increment score if it is
    • in charge of keeping track of number of questions answered
    • displays Question.vue and Score.vue
  • Question.vue: a component to display a single question

    • takes a question object as a prop (n.b.: make sure to use v-bind)
    • displays question.name, question.image, and 4 * answer in question.answers
    • emits a choice event when a choice is picked and "next" is clicked
  • Score.vue: a component to display the final score

    • takes a score number as a prop
    • just displays the score, and a button to restart
    • emits a restart event when the restart button is clicked

dcarn17-quiz's People

Contributors

kaine119 avatar chen-yiyang avatar

Watchers

James Cloos avatar  avatar

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.