Skip to content

lautomator/some-cards

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Deal Some Cards

v1.0

I heard you wanted some cards. Well, here ya go!

This simple web app prompts users to enter the number of cards they want dealt from a standard deck of 52 cards. The backend uses native javascript.

Not interesting enough? You can always put things into perspective by reading this article.

Setup

  • Clone or fork this repository.

  • Use Python's HTTP server on the command line: cd into public_html and use the command python -m SimpleHTTPServer 9000. Or, you can open public_html/index.html from your browser.

  • Optionally, you can use Vagrant/. The Vagrantfile is included in this repository.

Development

Change the var someCardsAppTargets.inDev in index.html to true when working in development to ensure active cache busters on the script and css. Change if to false for production.

Only edit the files in src/.

grunt whenever you have made changes to any of the files in src. See the Production section regarding Grunt.

Production

Set the var someCardsAppTargets.dev to true and use Grunt to minify the script and css. If you edit css/style.css and/or js/main.js, use grunt to minify these files after editing. Read the directions on setting up Grunt. The Gruntfile with tasks is included in this VCS. You will also need these NPM Modules used with Grunt and they can be found on the NPM website:

  • grunt-contrib-cssmin

  • grunt-contrib-uglify

  • grunt-contrib-htmlmin

Changelog

2017-10-31 v1.1 New Development Environment

2017-10-30 v1.0

2017-10-28 v0.1 alpha (in development)

About

Deal ya some cards!

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published