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.
-
Clone or fork this repository.
-
Use Python's HTTP server on the command line: cd into
public_htmland use the commandpython -m SimpleHTTPServer 9000. Or, you can openpublic_html/index.htmlfrom your browser. -
Optionally, you can use Vagrant/. The Vagrantfile is included in this repository.
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.
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
2017-10-31 v1.1 New Development Environment
2017-10-30 v1.0
2017-10-28 v0.1 alpha (in development)