This is a sample React, Flux, Node.js app using the Best Buy developer API.
The package includes a sample React.js application using Flux architecture to demonstrate using the helper in a React-based web app served with Node.js.
- Sign-up for a developer API Key at https://developer.bestbuy.com/
- Create an environment variable called BBY_API_KEY and set it equal to your developer API key.
- Clone the repository.
git clone https://github.com/BestBuyAPIs/bestbuy-sdk-js-sample-app.git
- Install the dependencies with:
npm install
- Open a terminal and start the app with
npm start
or start the watch script which starts the server and also watches for code changes to trigger a rebuildnpm run watch
Once the app is running, the window will print "Express server listening on port 3000"; open up a web browser and navigate to http://localhost:3000.
- Run the tests with
npm test
Best Buy Developer Portal: https://developer.bestbuy.com
Best Buy API SDK for JavaScript: https://github.com/BestBuyAPIs/bby-sdk-js
Best Buy API Query Builder: https://github.com/BestBuyAPIs/bby-query-builder
Thinking in React: https://facebook.github.io/react/docs/thinking-in-react.html
Flux: https://facebook.github.io/flux/docs/overview.html
MIT