Giter Club home page Giter Club logo

flashcards's Introduction

FlashCards

Abstract:

This interative flash cards application allows users to test their knowledge of Javascript's array prototype methods using the command line interface. Users can view multiple-choice questions, submit guesses, and receive feedback for each guess. When the 30-question deck is complete, a message shows the final score and how long it took to complete the round.

App Preview:

Flashcards example gif

Technologies Used:

  • Javascript
  • Mocha and Chai for test driven development
  • MAC Terminal for testing

Instructions:

Setup:
  • Clone this repo to your local machine: FlashCards
  • In the terminal, navigate using cd into the repo's root directory.
  • Run npm install to install testing dependencies.
  • Run node index.js to start the program. You will see a welcome message and the first question appears.
Using FlashCards:
  • Use keyboard arrow keys to select an answer and press return to submit. You will receive feedback.
  • Press return for the next question prompt.
  • Continue until you receive your final score.
  • Repeat until you master the subject!
View Testing:
  • Run npm test from the root directory.

Context:

Completed over three days during the beginning of module 2 at the Turing School. Goals for this project included:

  • Implement a robust testing suite using TDD by writing tests for the first time
  • Contribute code to an partially constructed object-oriented application
  • Write modular, reusable code that follows Single Responsibility Principle

Project Wins:

This was my first project completed using Test Driven Development as the guiding model. Building this application helped solidify my knowledge of this methodology and exposed me to new Mocha/Chai functionality. I'm now familiar with both the expect and assert Chai assertion APIs, and with using Mocha's beforeEach method to reduce repetitive test setup. This project also furthered my understanding of Javascript class-to-class interaction, as the app was built using a series of dependent classes and methods.

flashcards's People

Contributors

tialaaa avatar thatpamiam avatar hannahhch avatar niksseif avatar dependabot[bot] 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.