This app looks for deals of Nintendo Switch 1st party games, like Super Mario Odissey and Legend of Zelda: Breath of the Wild.
We access another websites to look for the best price of the listed games. To do so we request the content of these sites and get exactly the part where it displays the price. However we can't directly request the html content from the client (React app) because the browser block CORS (more here). So we create a NodeJS server which will retrieve the data and give it back, so we can parse it and display the prices.
- Clone the repository, like
git clone [email protected]:ericmadureira/switch-ip-deals.git
- Run
yarn
to install dependencies - Run
yarn run-app
to run both React client and Node server - The app will be displayed at
http://localhost:3000
To learn a bit of scraping, practice JS/React/Node and help my fellow gamers.