Team name: Hungry Panda
Team member:
Name | netid |
---|---|
Tingyu Zeng | tzeng11 |
Sicheng Meng | meng29 |
Yiwei Kuang | yiwei9 |
Jiachun Tang | jiachun5 |
Fangsheng Yang | fyang28 |
- Project proposal: Proposal.pdf
- Progress report: Progress_Report.pdf
- Clone the repository,
- Go to the Extensions page by entering chrome://extensions in a new tab. (By design chrome:// URLs are not linkable.)
- Enable Developer Mode by clicking the toggle switch next to Developer mode.
- Click the Load unpacked button and select the extension directory.
There are 2 ways of installing the current dependencies:
- [ Recommended ]: if you have
conda
installed on your local machine, useconda env create -f environment.yml
at the root directory. Activating the virtual environment can be done byconda activate hungryPanda
. - Using
pip
:pip install -r requirements.txt
(note that you may need to configure the virtual environment yourself and if the installation does not work, you may need to configure your Python version based onruntime.txt
.)
If you need to add a new dependency to the project, use the command: pip install <lib_name>
, e.g, pip install flask
. After the installation, update the txt file by pip list --format=freeze > requirements.txt
.
- Loading the extension on Chrome
- API references
- Make sure you installed all the dependencies.
- Starting the development server can be done by running this command in your terminal:
flask --app backend/app run --reload
. Then you can use Postman to interact with the endpoints. - But you can also create an independent Python script that performs the desired action (say
nlp.py
under thebackend
folder), and develop further by runningpython backend/nlp.py
in the root directory. In this way, you avoid the need of running the server during your development.
- Run the backend via
flask --app backend/app run --reload
. - Go to a Yelp website in Chrome and click on the extension icon.
Please fork this repository and paste the github link of your fork on Microsoft CMT. Detailed instructions are on Coursera under Week 1: Course Project Overview/Week 9 Activities.