Giter Site home page Giter Site logo

joanrig / diy-json-serializer-lab-online-web-ft-021119 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from learn-co-students/diy-json-serializer-lab-online-web-ft-021119

0.0 1.0 0.0 78 KB

License: Other

Ruby 77.53% JavaScript 1.28% CoffeeScript 0.82% CSS 2.02% HTML 18.35%

diy-json-serializer-lab-online-web-ft-021119's Introduction

DIY JSON Serializer Lab

Objectives

  1. Write a JSON Serializer
  2. Use that JSON Serializer to render information without page reload

Introduction

We're going to use our product/order system and enhance it so that customers can browse the product catalog without refreshing the page.

You'll be modifying and building on the code from the previous lab, which is provided.

Instructions

  1. Create a ProductSerializer that serializes all of a product's attributes (name, price, inventory and description) to JSON.
  2. Create a route and action for /products/:id/data that returns a JSON-serialized product.
  3. Create the product show page and route. Add a link to the products show page called "Next Product" that will use AJAX to load the data for the next product without refreshing the page.
  4. Make sure tests pass, including already existing ones!

Note: The test suite makes use of selenium-webdriver to test the AJAX-enabled pages. You will need to have Firefox installed for the tests to pass.

diy-json-serializer-lab-online-web-ft-021119's People

Contributors

maxwellbenton avatar scottcreynolds avatar pletcher avatar cernanb avatar jilustrisimo 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.