Skip to content
This repository has been archived by the owner on May 21, 2024. It is now read-only.

lain-core/AppHack2021

Repository files navigation

Grocery Best Prices App

This app was developed by Hunter King, Troy Miller, John Hall, and Joe Story for Apphack 2021, where it won 1st prize. Our presentation slides for this project can be found here.

Intent

We developed this app in order to shop for prices on items at various retailers such as Walmart, Harris Teeter, Amazon Fresh, BJs, and more. We utilized web scraping software Selenium and HTML parsing from Beautiful Soup 4 with python in order to fetch data from the sites, and tied them into an app created using Expo with React Native and Typescript. To connect the two, we utilized Flask on DigitalOcean in order to run our queries server-side.

Usage

Use npm install to install the requisite packages, then use npm start to run. Please note that we have a hard-coded ipv4 address which is used to tie into our server, so it will not be able to make server-side queries unless you create a flask instance.

Flask Setup

The venv contained in the flask_server folder (myprojectenv) contains all the needed python dependencies. Install Google Chrome v89 on the Linux machine you are running the server from. Use flask run for a local development server or uwsgi for deployment.