Giter Site home page Giter Site logo

walmart_api_project's Introduction

Getting Started

  1. install node.js and mongoDB

I use the online MongoDB service mLab

Follow the tutorial here

The only table Items schema is like:

[
  {
    "_id": {
        "$oid": "5c64d27a9c6dce3817c07a37"
    },
    "itemId": "14225185"
  },
  ...
  {
    "_id": {
        "$oid": "5c64d2f8e7179a27eb604d68"
    },
    "itemId": "14225186"
  }
]
  1. Download the Walmart_API_Project from repo and install the dependencies

Under Walmart_API_Project and Walmart_API_Project/client, execute the install command

npm install

and create a dev.js file under config folder and put the words as following

module.exports = {
  walmartKey: <walmart_API_key>,
  mongoURI: <mongoDB_URI>
};
  1. Run npm run dev, it will initiate the node server at http://127.0.0.1:5000 and react server at at http://127.0.0.1:3000

  2. Run mocha -R spec spec.js to run the unit test

The functions of website

The search bar

The search result

Enter any keyword in search bar will display the items which contains keyword in discription. Item shows the picture, name, price and the link to url.

If user doesn't enter any keyword, shows a warming

If no relevant items found with keyword

walmart_api_project's People

Contributors

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