Coder Social home page Coder Social logo

beingfluid / angular-quiz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from garystafford/angular-quiz

0.0 0.0 0.0 840 KB

AngularJS-based Quiz project for blog post: 'Data-Driven Forms with AngularJS’s Two-Way Data Binding and Custom Directives'

Home Page: http://wp.me/p1RD28-1eo

JavaScript 93.53% CSS 6.47%

angular-quiz's Introduction

##AngularJS Dynamic Quiz Example

AngularJS-based Quiz project for blog post, Data-Driven Form Design with AngularJS's Two-Way Data Binding and Custom Directives. Uses two-way data binding and custom directives to create and display a quiz, with multiple types of questions, from a JSON file.

####Highlights

  • Project based on [Yeoman generator for AngularJS] (http://yeoman.io).
  • Basic and advanced quiz examples. Read the blog post for more information.
  • Reads JSON data files, using a $resource in factory services.
  • JSON files contain quiz data: questions, choices, answer, etc.
  • Displays questions based on question type: multiple choice, multiple correct, or true-false, using custom directives.
  • Demonstrates the use of an Angular filter, custom directives, and the use of partials view templates.

####Requirements

  • git
  • npm (part of Node.js)
  • Yeoman (yo, Bower, Grunt)
  • PhantomJS (optional - Karma unit tests)
  • David (optional - dependency management)

####Installation Install GitHub project

git clone https://github.com/garystafford/angular-quiz.git
cd angular-quiz
npm install
bower install

Install base project using generator-angular

npm install -g generator-angular
mkdir quiz-app && cd $_
yo angular quiz
yo angular:route quizAdvanced
yo angular:factory quizAdvancedFactory
yo angular:directive quizTrueFalseDirective

Start Project grunt serve

Test Project grunt test

Update npm dependencies within project (use david-dm.org)

npm install -g david
david update

####TO-DO's

  • Document project features and objectives
  • Add functionality to save results to file with username and timestamp
  • Add functionality to use charting (chartjs) and graphing (d3).

####Preview Chrome on Android

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.