Coder Social home page Coder Social logo

stencil-test's Introduction

Stencil-Test

Stencil Test for oBundle Interview Project

Demo Links

Brief Description

The primary goal of this project was to familiarize myself with the BigCommerce Stencil CLI and template customization via Handlebars. The most challenging aspect of this project was getting the API endpoints to work properly and proxying API calls so I could utilize them safely on the client-side. I was able to build out all of the functionality listed in the tasks below, along with the bonus task of showing customer details in a banner at the top of the page.

Task

  1. Create a product called Special Item which will be assigned to a new category called Special Items. Be sure to add at least 2 images during the product creation
  2. Create a custom template for the Special Items category page (you may need to restart the CLI to see the custom template after creating it).
  3. The Special Item should be the only item which shows in this category - create a feature that will show the product's second image when it is hovered on.
  4. Add a button at the top of the category page labeled Add All To Cart. When clicked, the product will be added to the cart. Notify the user that the product has been added.
  5. If the cart has an item in it - show a button next to the Add All To Cart button which says Remove All Items. When clicked it should clear the cart and notify the user.
  6. Both buttons should utilize the Storefront API for completion.

Bonus: If a customer is logged in - at the top of the category page show a banner that shows some customer details. This should utilize the data that is rendered via Handlebars on the Customer object.

stencil-test's People

Contributors

bc-adamferenzi avatar bc-chris-roper avatar bc-ejoe avatar bc-jz avatar bc-krishsenthilraj avatar bc-ravijayaramappa avatar bc-williamkwon avatar bookernath avatar christensenep avatar cristycarpenter avatar davidchin avatar haubc avatar hegrec avatar jbruni avatar johnhebron avatar junedkazi avatar mattcoy-arcticleaf avatar mattolson avatar mcampa avatar meenie avatar mjschock avatar pascalzajac avatar pedelman avatar r742davis avatar sacr3dc0w avatar sandeepgraju avatar sherrybc avatar sitaggart avatar snaderibc avatar ubersmake 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.