A webpage that allows users to search items for sale on eBay.com using their API.
Tools: Flask, JavaScript, HTML, CSS, HTML DOM, Fetch API, JSON, eBay API
Backend with Flask framework parses and filters the response from the Ebay “findItemsAdvanced” API.
It returns the results in JSON format to the frontend written in Vanilla JavaScript.
JavaScript file traverses through the response and generates HTML.
Reference video for this Homework 6 in CSCI 571 class: https://youtu.be/a1uB_MaxRqo
Steps:
- Clone the repository
- Sign up for a Ebay developer account to obtain the API key. Paste your key in the app.py file, here. Alternatively, you may set it as an environment variable and access it.
- In the static/index.js file, here instead of the URL "'https://chalogocartchalo-279803.wl.r.appspot.com/" use "https://localhost:5000/" or the URL obtained on deploying it on cloud, say GCP.
- Test the application locally by running the app.py file to start the Flask server.
- To deploy it on GCP:
You must paste the GCP obtained URL as suggested in step 3.
- Create a project
- Enable billing
- Download GCloud SDK and run "gcloud init" in the cloned repository.
- Select project id, region, and complete the initialization.
- Run "gcloud app deploy"