Code Monkey home page Code Monkey logo

wheel-of-fortune's Introduction

Wheel-Of-Fortune

A Javascript application which creates a wheel-of-fortune using HTML5 Canvas.

Description

This is a personal toy web application created in 2015 to explore HTML5 Canvas and the development workflow for a Javascript project which was state of the art at that time. I chose Backbone as the application framework and Grunt for task automation. For easy data manipulation, I wanted to load the wheel data from a google spreadsheet using the Google Sheets API.

After 7 year of inactivity, in 2021, I updated the app to use the Goggle Sheets API V4 API. V3 has been deactivated in 2020. Other major changes include a migration from bower to yarn, updated dependencies and support for Hi-DPI displays.

Demo

http://zweischrift.de/wof/

Local Setup

  1. Create a a Google spreadsheet with the first column holding the labels and the second the selection weight of each element (see this example) and publish it.
  2. Clone this repository and rename Gruntfile.sample.js as Gruntfile.js and edit the initialRoute parameter in the template task (<sheet_id> is the key of your spreadsheet as defined by the Google Sheets API and <api_key> an API key which authorizes the requests).
  3. Run yarn install && yarn exec grunt build server, which builds the app in the build/ directory and starts a server at localhost:7878 with this directory as it's root. Open a browser and enter the URL of the server.
  4. Spin the wheel ;)

wheel-of-fortune's People

Contributors

hoesler avatar axelcypher 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.