Git Product home page Git Product logo

walapi's Introduction

Walmart Test Application - Gowtham Ashok

This is a simple application that will get Walmart products and display them. Recommended products will be displayed when you click on an item. I couldn't get jsonp from the recommendations api, so i just relayed it using my server, for all the APIs.

This solution is mainly a simple jquery application, which uses the API via AJAX queries. To search items, I use the search api, and use the recommendation API for the recommended items. I used the lookup API to get product information

<<I didn't see any need to use the Product Lookup API (since the recommendations api already has information for 25 items).>> [I wanted to follow the given workflow exactly, so I stopped doing this]

For using the Walmart apis, i queried the Walmart server, and returned xml/json objects to my server. I then parsed it and returned it as a json object.

I use the Bogle font, with the walmart logo. It has primitive responsive capabilities (changes to 1 column in phones. Haven't tested it extensively)

There is automated testing available on test.py. You have to run the main.py server, and then run the test.py on another console.

I have tested them on linux x64 (specifically Kubuntu 16.04). Please let me know if your environment is different.

Installation

To install: Install python3 You may need to install the json library or any other missing libraries from your system using pip. For test.py to work, you need to have the latest google chrome browser installed.

This is for linux, some additional steps may be needed for Windows.

Usage

Run main.py on the a console Open it in browser, via http://localhost:8080/index.html For tests, run test.py on a console.

walapi's People

Contributors

gwty 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.