Giter Site home page Giter Site logo

t-shirt's Introduction

Tshirt.ly

Goal

STEVE, ANNA, MOLLY, Qiao

Technologies required:

  • Sinatra
  • Active Record
  • sqlite3
  • github: have a readme that includes a list of the app's authors, a list of technologies used, and a picture of the ERD.

Features

Part 1: Show the T-Shirts

  • A user can see a list of t-shirts and quantity available for each shirt.

Part 2: Buying a T-Shirt

  • The user can "buy" any quantity of a single t-shirt style at a time, assuming the store has at least that quantity in inventory.
  • The user does not enter payment information.
  • The user selects the quantity they want to purchase, and enters an email address.
  • The quantity on the page should change to reflect the new amount of shirts availabe for purchase.
  • The user is presented with a confirmation page.

Part 3: Admin Area

  • The admin user can go to /admin and see an admin panel. (Usually an admin panel would require a special login, but for now just let anyone go to this route).
  • The admin user can add t-shirts, remove t-shirts and update t-shirts. Each t-shirt for sale has a quantity avaiable, a price, and an image url. (all t-shirts are one-size-fits-all)
  • The admin user can also see a list of all past purchases created by their customers.

Process

Use github to share your code with your group members. Before coding anything, plan out your app on a whiteboard.

Some things to keep in mind while planning:

  • The flow of all the user actions.
  • what your tables will contain and how they will interact.
  • Where will stuff be? How many pages are there? Where and when do certain actions take place?
  • what are the entities for this application?

Also Pair Programming is not required, but strongly encouraged.
Make sure you switch who is typing frequently and that you both understand the code that you write.

One step at a time...

  • Build one feature at a time and don't move on to the next one until you are finished with the last.

ROUTES

  • '/'
  • '/tshirts'
  • '/tshirts/:id'
  • '/tshirts/:id/newSale'
  • '/tshirts/confirmation'
  • '/admin'
  • '/admin/tshirts'
  • '/admin/tshirts/:id'

ERD

ERD

t-shirt's People

Contributors

qclin avatar mawlsetz avatar scmgithub 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.