GithubHelp home page GithubHelp logo

meteorshop's Introduction

#Responsive web site for a clothing retailer.

Picture 1

###Task

  • Following user stories:
As a User I can add a product to my shopping cart.

As a User I can remove a product from my shopping cart.

As a User I can view the total price for the products in my shopping cart.

As a User I can apply a voucher to my shopping cart.

As a User I can view the total price for the products in my shopping cart with discounts applied.

As a User I am alerted when I apply an invalid voucher to my shopping cart.

As a User I am unable to Out of Stock products to the shopping cart.

##To run the app:

Please make sure that you have meteor installed:

curl https://install.meteor.com/ | sh 

Then:

git clone https://github.com/5555482/meteorshop.git
cd meteorshop
$ meteor
Then navigate to http://localhost:3000

##To run the test:

meteor add xolvio:cucumber
  • The retailer sells six different categories of clothes:
 women’s footwear
 
 men’s footwear
 
 women’s casualwear
 
 men’s casualwear
 
 women’s formalwear 
 
 men’s formalwear
 
  • There are also discount vouchers availabls:
£5.00 off your order

£10.00 off when you spend over £50.00

£15.00 off when you have bought at least one footwear item and spent over £75.00

##Approach:

I saw someone write: “Meteor is to Node.js as Rails is to Ruby” and I think that’s a good time for trying new framework. Meteor has real-time built into its core though. When the database is updated, the data in your templates is updated. When a user clicks a button or submits a form, the action occurs immediately. In the vast majority of cases, this doesn’t even require any extra effort. You build a web application as you normally would and, out of the box, it just happens to be real-time. For testing I used Velocity.It is a set of tools, which supports several frameworks like Jasmine, CasperJS, Cucumber, Mocha, Dredd & Robot. Velocity provides a mirror of an application with a separate database that can be used for testing. Velocity also comes with two test runners, a HTML test runner and a console test runner. For my tests I’ve used Cucumber.

meteorshop's People

Contributors

5555482 avatar geomck1967 avatar mcknightg avatar meteortuts 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.