Snack Hunter: The Ultimate Taiwanese Night Market Food Finder
.
├── DSproposal_Group9_final.pdf
├── README.md
├── IOSAPP_Source
│ └── NightMarketSearch
│ ├── ContentView.swift
│ ├── Info.plist
│ ├── NightMarketSearchApp.swift
│ ├── SearchResult.swift
│ └── SearchViewModel.swift
├── Java_MainBackend
│ ├── nightmarket_info.csv
│ ├── pom.xml
│ ├── mvnw
│ ├── mvnw.cmd
│ ├── src
│ │ └── main
│ │ ├── java
│ │ │ └── com
│ │ │ └── example
│ │ │ └── searchengine
│ │ │ ├── SearchEngineApplication.java
│ │ │ ├── controller
│ │ │ │ └── SearchController.java
│ │ │ ├── engine
│ │ │ │ ├── KeywordCounterEngine.java
│ │ │ │ └── KeywordExtractionEngine.java
│ │ │ ├── model
│ │ │ │ ├── CKIPTransformer.java
│ │ │ │ ├── ClassificationModel.java
│ │ │ │ ├── FetchGoogle.java
│ │ │ │ ├── Keyword.java
│ │ │ │ ├── KeywordExtractionResult.java
│ │ │ │ ├── Page.java
│ │ │ │ └── VoyageReRanker.java
│ │ │ └── service
│ │ │ ├── GoogleQuery.java
│ │ │ └── GoogleTranslateService.java
│ │ └── resources
│ │ ├── application.properties
│ │ ├── static
│ │ │ └── images
│ │ │ ├── bg.jpg
│ │ └── templates
│ │ └── index.html
├── python_backend
│ ├── fetch_google.py
│ ├── flask_app.py
│ └── test
│ └── test_api_search.py
To set up the development environment, follow these steps:
- Please install it yourself in advance: python / pip / pyvenv / java / maven / springboot
-
git clone our repo:
git clone https://github.com/RoyPeng126/DS_Project cd DS_Project -
setup python environment:
cd python_backend python -m venv ds_venv source ds_venv/bin/activate pip install -r requirements.txt -
setup environment variable (Please go to the voyage and gcp official websites to obtain the Keys):
// windows set VOYAGEAI_API_KEY= set GOOGLE_CLOUD_API_KEY= set GOOGLE_CLOUD_SEARCH_ENGINE_ID= // linux / mac export VOYAGEAI_API_KEY= export GOOGLE_CLOUD_API_KEY= export GOOGLE_CLOUD_SEARCH_ENGINE_ID=
-
run python service:
python flask_app.py -
setup java environment:
// open a new terminal cd Java_MainBackend mvn clean install
-
setup environment variable in new terminal:
// windows set VOYAGEAI_API_KEY= set GOOGLE_CLOUD_API_KEY= set GOOGLE_CLOUD_SEARCH_ENGINE_ID= // linux / mac export VOYAGEAI_API_KEY= export GOOGLE_CLOUD_API_KEY= export GOOGLE_CLOUD_SEARCH_ENGINE_ID=
-
run java service:
mvn spring-boot:run -
Open Web Version:
- Launch browser: http://localhost:8080
-
iOS App Version:
- First, use a Mac computer to download Xcode.
- Open the
NightMarketSearchfolder located in the./IOSAPP_Sourcedirectory of the repo in Xcode. - Run the app (using an iOS 18 or later simulator).
- Alternatively, you can export the app directly to your personal iPhone:
- In this case, ensure that the backend is fully deployed to a server beforehand, and modify the Swift code to replace
localhostwith the appropriate domain/IP address. - Additionally, you will need to set your iPhone to "trust" the app.
- In this case, ensure that the backend is fully deployed to a server beforehand, and modify the Swift code to replace