Giter VIP home page Giter VIP logo

quizapp's Introduction

QuizApp

A proof of concept quiz app. Made using the CakePHP framework.

  1. Install an *AMP server. This is a free, self-contained local hosting environment that packages up an Apache web server, MySQL database and PHP in a single downloadable package.You can get it here: http://ampps.com/

    • Download and installed from AMPPS download page.

    • Mac OSX Apache already running on port 80. Changed listen port to 8888 (in httpd.conf).

    • Changed <Directory> apache permission in httpd.conf file from Deny from all to Allow from all.

    • localhost:8888 now accessible from webroot in app.

  2. Download and configure the CakePHP framework (version 1.3 here). This is a model-view-controller (MVC) framework we use for backend development, similar to Ruby on Rails or Django for Python.

  3. Follow the example of creating a simple blog from the Cake Cook Book, found here. Alter the code from the example so instead of creating a blog post, you create a single page visual quiz, which collects a question and 4 image options via URLs (see attached). Then upon saving the selections, it'd display it in the browser. It doesn't need to be interactive, instead it can just output the question results as a proof of concept. I've attached a simple example of adding a question with image URLs as options and then displaying all the questions on a page. You can style it if you want, but if you're not familiar with CSS feel free to leave default styles.

    • Followed CakePHP blog example.

    • Based on CakePHP blog example, created a basic proof of concept quiz app.

  • Basic Features

    • One row of images for view ports over 800px. Two rows of images for smaller than 800px viewport.

    • Add images via Add Question button. Image URLs are optional.


Demo Images

Quiz with a wide viewport.

Quiz wide viewport

Quiz with a narrow viewport. Scrolled to bottom with add question link. Example of only using two (of the four url options) images for a question.

Quiz narrow viewport

Add page with narrow viewport.

Quiz add narrow

Add page with wide viewport.

Quiz add wide viewport

quizapp's People

Watchers

James Cloos avatar Brandon Aguirre 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.