Git Product home page Git Product logo

card-game's Introduction

Encode Assignment: card-game

This is a repository containing the code for the Encode assignment, build with AngularJS and Webpack

Getting started:

What you need to run this app:

  • node and npm
  • Ensure you're running Node (v4.1.x+) and NPM (2.14.x+)

clone the repo

$ git clone https://github.com/frexos/card-game.git

change directory card-game/

$ cd card-game

install the dependencies with npm

$ npm install

start the server

$ npm start

go to http://localhost:8080 in your browser.

Build files

  • single run: npm run build

The built files will be found under the dist folder. Within this folder the developer will find css and js bundles as well as the related html files. Currently the html files are separate and will have to be manually unified into one single index.html. This must be fixed through proper webpack configuration

  • build files and watch: npm start

Testing

Unit Tests

  • single run: npm test

Brief description of the development process

The development of this assignment was carried out using AngularJS with a basically configured Webpack bundler. Sass pre-processor has been used along with Bootstrap framework and a jquery plugin for the use of custom scrollbar (by malihu). The application's functionality has been separated in two components as described in the assignment requirements. The components are responsible for the rendering of the list of cards to the left, and the details of each selected card to the right. Both components are attached to the main directive 'app' and communicate with each other with the use of a service (via their controllers). The service is responsible for rendering the required data from the remote json - and the components' inter-communication.

card-game's People

Contributors

frexos avatar

Watchers

James Cloos 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.