Giter Site home page Giter Site logo

phemmyster / clothes-shop-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gypsydave5/clothes-shop-example

0.0 1.0 0.0 216 KB

A clothes shop front end written in Angular, using Protractor with Cucumber and Karma with Jasmine

JavaScript 40.12% CoffeeScript 59.88%

clothes-shop-example's Introduction

Clothes Shop

A technical test unfinished

###Brief

Create a responsive website for a clothing retailer, implementing different categories of clothes, a shopping basket and discount vouchers.

###Method

I decided to tackle this using AngularJS. To test drive the development I used Cucumber.js to drive Protractor end-to-end tests to describe the features, and Karma with Jasmine for unit testing.

To make the website responsive I would be using Twitter Bootstrap.

As I would be using Angular I decided to mock the products database (which would be wrapped in a RESTful API with a series of JSON endpoints) as a flat JSON file. The file can be seen in the mock_db directory.

###Set up

Aftest cloning the repo run npm install and bower install to install the required dependencies.

You may need to install PhantomJS locally.

###Tests

Running the feature tests requires starting a simple webserver in node to serve the page, and starting a simple Selinium server to visit it. Run both npm start and webdriver-manager start in separate terminal windows.

Run all the tests with grunt Run the unit tests with grunt test:unit Run the feature tests with grunt test:cukes

###To do

Add some new Cukes for:

  • implement offer prices
  • add notification that the voucher code has failed
  • update stock availability based on the basket
  • make voucher codes unique
  • refactor...
  • ... a lot ๐Ÿ˜„
  • and make it look prettier

clothes-shop-example's People

Contributors

gypsydave5 avatar

Watchers

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