Git Product home page Git Product logo

deck-of-cards's Introduction

Deck of Cards

(non-redux version)

General Explanation

This is a non-redux version of the 'Deck of Cards' assignment. It has been assumed that this code will be a foundational part for a new product (most likely involving at least some persistence layer and frontent later). In order to achieve this, the following measures were taken:

  • The code is organized in the form of an Express application, which will later facilitate adding middleware layers and creating API endpoints for the client side.
  • The app uses mocha/chai for unit testing. All new code is covered with unit tests to ensure code quality.
  • JavaScript Standard Style is ensured by using 'standard' library as a linter.

Using specific libraries

lodash

_.times() and _.map() are used.

webpack

Webpack ver. 3.3.0 is used to:

  • assemble backend bundle to be server as a Node app:
webpack
  • run webpack-dev-server:
npm run webpack

Running the app

main app.js in console

With babel presets declared in .babelrc, run babel-node from the root of the app:

babel-node server/src/app.js

Express app

To run the app as a server:

webpack
npm run start

The deck of cards in the form of shuffled array of 52 Card objects will be available at localhost:7000

Deck & Card classes

The core logic for requested classes is located here

deck-of-cards's People

Contributors

roxolan avatar

Stargazers

 avatar  avatar

Watchers

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