dmaster18.github.io


The Word Unscrambler App (Final)

The Word Unscrambler is a game based on the JavaScript React framework. It allows users to play a game where they are tasked with generating as many words as possible from a random grouping of nine letters.


The Word Unscrambler (Updated)

The Word Unscrambler is a game based on the JavaScript React framework. It allows users to play a game where they are tasked with generating as many words as possible from a random grouping of nine letters.


The Word Unscrambler

The Word Unscrambler is a game based on the JavaScript React framework. It allows users to play a game where they are tasked with generating as many words as possible from a random grouping of nine letters. Installation The Word Unscrambler can be downloaded from https://github.com/dmaster18/the_word_unscrambler_app. Once the program is downloaded, go to the program’s ‘backend’ directory from your local Terminal/Command Line and then run bundle install or bundle exec install to ensure all the dependencies are installed. After, run rails (or rake) db:migrate to set up the database. In order to populate the database with all the game’s word combinations, subsequently run rails (or rake) db:seed. Once all the backend dependencies have been installed and deals have been created, run the rails s command from your machine to run the rails server. In a separate Terminal window, go to the program’s ‘frontend’ directory. Run npm install to install all the necessary JavaScript and React dependencies. Once complete, run npm start and you will be sent to the program’s homepage on your default web browser. Usage From the homepage, the user can click a link to play a quick game, a full game, or view the leaderboard. In both the quick and full game modules, the user must score as many points as possible by creating as many words in the allotted time. Each word has a score that is equivalent to the length of the word, so a two-letter word is worth two points and a nine-letter word is worth nine points. In the quick word game, the user must score as many points as possible within a minute from one letter grouping. In the full word game, the user must do the same but with ten possible letter groupings within five minutes. The user cannot use any letter tile more than once when forming anew word. When a user enters a word, the game will inform him whether the word is correct or incorrect. Users with especially high scores can feel free to post their high scores to the app’s leaderboard. Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/dmaster18/the_word_unscrambler_app/pulls. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. License The gem is available as open source under the terms of the MIT License.


The Bartender App

The Bartender App is intended to teach users, ranging from the casual cocktail maker to the experienced bartender, how to make new and exciting drinks. It contains study and quiz modules that, respectively, instruct and test users on hundreds of cocktails. Those who feel they have performed particularly well on the quiz can show off their drink-making knowledge by submitting their names on the app’s leaderboard. Installation The Bartender App can be downloaded from https://github.com/dmaster18/the-bartender-api. Once the program is downloaded, go to the program’s directory from your local Terminal/Command Line and then run bundle install or bundle exec install to ensure all the dependencies are installed. After, run rails (or rake) db:migrate to set up the database. In order to populate the database with approximately 500 drink cocktails, subsequently run rails (or rake) db:seed. Once all the dependencies have been installed and deals have been created, run the rails s command from your machine to run the rails server. Usage Once the server is up and running, open a separate terminal window and go to the following directory of the application: “the-bartender-api/front_end/htmls”. From this directory, run the “home.html” in your terminal window. On Windows machines, type “home.html” into Command Prompt. On Mac and Linux machines, enter “open home.html” into Terminal. The user should be taken directly to the app’s homepage on his or her local machine’s default web browser. From there, the user can click a link to study cocktails, a link to take a quiz, or view the leaderboard. In the study module, the user is presented with cocktails on index cards that have the name of the cocktail on the front-facing side. When the user wants to know the answer, he or she can press one of two buttons, either the “Reveal Ingredients Only” button or the “Reveal Ingredients + Measurements” button. As the names of these buttons suggest, the former simply shows the cocktail’s ingredients, and the latter shows the cocktail’s ingredients and respective portions. When done learning a particular cocktail, the user can move on to the next on by pressing the “Next” button below. If the user would like to review a particular recipe again, he or she can return to it by pressing the “Previous” button. In the app’s quiz feature, the user can choose the difficulty and length of the quiz. A quiz can have one of the following difficulties: “Easy”, “Medium”, “Hard”, “Very Hard”, or “Random”. The app evaluates a given cocktail’s difficulty by the number of ingredients it contains. “Easy” cocktails have three or fewer ingredients. “Medium” cocktails have five or fewer ingredients. “Hard” cocktails have seven or fewer ingredients, and “Very Hard” cocktail have eight or more ingredients. The “Random” difficulty can contain cocktails from any of these categories, ranging from “Easy” to “Very Hard”. Additionally, the user can choose the length of the quiz, which can have either 5, 10, 25, 50, or 100 questions. After setting the difficulty and length parameters, the user can begin the quiz. In each question, the user must select all the ingredients that belong to the cocktail recipe. If the user correctly selects an ingredient card, it will turn green and have a checkmark on it. However, if the user chooses an incorrect ingredient card, it will become red and bear an X on it. If the user selects three wrong ingredients for any given question, the answer will be considered incorrect and the user will be rewarded zero points. If the user correctly selects all the ingredients before receiving three X’s, he or she will receive one point. Upon completing all the quiz’s questions, the user will see both his or her final raw point score and percentage score. From this point, if feeling confident, the quiz taker can submit these results to the leaderboard, for the rest of the world to see. Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/dmaster18/the-bartender-api/pulls. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. License The gem is available as open source under the terms of the MIT License. WRITTEN BY


David’s Digital Deal Finder

David’s Digital Deal Finder is a Rails web application that allows users to view, wishlist, and review daily tech deals from a variety of electronics retailers, including eBay, Best Buy, Walmart, Newegg, and Micro Center. This app will facilitate and expedite the process of finding and saving good electronics deals for tech-oriented consumers. Installation David’s Digital Deal Finder can be downloaded from https://github.com/dmaster18/davids_digital_deal_finder_final. Once the program is downloaded, go to the program’s directory from your local Terminal/Command Line and then run bundle install or bundle exec install to ensure all the dependencies are installed. Since many of these websites are updated at least on a daily basis, users will want to keep their deals up-to-date. Each time a user wants to find new deals, he or she should go into the rails console (“rails c”) and execute the following command: DealScraper.new.generate_items. This command should supply the web app with all the required daily tech deals. Once all the dependencies have been installed and deals have been created, run the rails s command from your machine to initiate the web application. Usage Once your local server is up and running the application, go to the following HTML address to arrive at the welcome page: http://127.0.0.1:9393(OR YOUR LOCAL SERVER)/. From the welcome page, the user will be greeted links to either sign up, if the user is new, or log in, if the user already has an account. When signing up for the first time, the user must make sure to enter a unique username as well as a password that is at least eight characters long and contains at least one capital letter, one number, and one special character. If the user fails to sign up or log in, he or she should be greeted with error(s) in red text alerting him or her of the mistake. If the user doesn’t want to manually create a username and password, the user can bypass the traditional sign-in process by signing in using his or her GitHub account, which implements the OAuth gem. Once logged in, the user will arrive at a home page that has links to either view or create tech deals, wishlists, and reviews. Once a user creates a wishlist, he will be able to add any tech deal on the web app to that list. In addition to adding or removing deals from wishlists, the user can also give glowing or negative reviews to deals. The user will be able to create new deals as well as edit and/or deal any existing ones. However, the user will only have the ability to modify his own personal reviews and wishlists, since no user has the right to edit or destroy someone else’s reviews or wishlists. The user will have the ability to read other consumers’ reviews, however, but not have the ability to read their wishlists. Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/dmaster18/davids_digital_deal_finder_final/pulls. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct. License The gem is available as open source under the terms of the MIT License.