MrLoick / design-mobile

Automatically exported from code.google.com/p/design-mobile
0 stars 0 forks source link

Sprint 1 - Review Task - BFB - Match Dishes #159

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
My task during this sprint was provided a the user already created a dish, I 
use the ingredients to search for possible matches.
The logic of my task is done on the server side. I send a list of ingredients 
to the server, the server than searches the DB for all dishes having at least 
one of the ingredients, and the percentage similarity is calculated which is 
basically the #matching ingredients/ max(sent ingredients,current dish 
ingredients). The result is then sent back to android in the form of an array 
of JSON objects. In case matches were found the user should see a gallery at 
the bottom of the screen with all matching dishes, their name and percentage of 
similarity, in the middle of the screen is shown the dish with the highest 
percentage similarity. In case no matches are found, an image of a sad face is 
displayed and a message stating that no matches were found.
How to reach my part?
1) click play
2) choose any time of dish
3) add any ingredients
4) the results are shown
NB: In order to see matches choose all 3 types of cheese :)

As for actually running the application there is an issue with my task when run 
on the deployed version, I have created an issue for code.google as this is an 
issue from their side 
http://code.google.com/p/googleappengine/issues/detail?id=5474.
In case the issue was not resolved by max today then sadly u will have to run 
the application locally. I will notify you then by the exact steps you will 
need to do in order to run the application on the local host.

Original issue reported on code.google.com by rana.mor...@gmail.com on 27 Nov 2011 at 12:50

GoogleCodeExporter commented 8 years ago

Original comment by rana.mor...@gmail.com on 28 Nov 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Hey monica the issue has not been resolved so sadly you will have to test the 
app using local host. In order to do that you will need to set up python and 
pydev on your PC. I ll take you step by step through the process.
If you choose to run the .apk version uploaded you wont be able to see matches 
but instead will see the view stating no matches were found and a toast stating 
the error I think. To view the task as it should you will need to run it on 
local host

Open the following website 
http://elleestcrimi.me/2011/08/16/setup-python-django-eclipse-windows-7/
do steps 2, and 4. 
NB: To add the path to your system variables:
1) Open start menu
2) right click my computer
3) Click on properties
4) click on advanced system settings
5) click on environment variables
6) Fe system variable click new
7) variable name PYTHONPATH
   variable value is the path to your python folder which most probably will be "C:\python27"
8) TO make sure cuz am not sure which one is the correct in the user variables 
edit the variable path and add the path to python again

That way you are done with setting up python and pydev.
In order to run the application:
1) Check out both BFB client and BFB server from 
http://code.google.com/p/bfb-mobile-project/source/checkout
2) In the BFB server you will find a file called main.py, right click and and 
click run As - > run configurations
3) you will find in the list on the left python run, create a new python run, 
in the project field type the name of the project
4) in the main module type C:\Program 
Files\Google\google_appengine\dev_appserver.py or y3ny the path to the file 
dev_appserver.py in your google_appengine folder
5) In the arguments tab type "${project_loc}/src"
6) If you find errors in the BFB client remove the libraris giving the error 
and add them again from the app_engine folder on your pc

kda el mfrood everything is set so that you are ready to run!
To run:
1) right click main.py in the BFB server folder and run as-> run configuration 
which is the new configuration u created before
2) it will be written in the console that the app is running on localhost
3) in your browser typw http://localhost:8080
4) run bfb client

I am really sorry monica for all the trouble but they havent replied back to my 
issue
If you need any help with any of the steps call me :)

Original comment by rana.mor...@gmail.com on 28 Nov 2011 at 4:14

GoogleCodeExporter commented 8 years ago
Dear Rana, after reviewing your task these are my comments:

-The task of matching dishes is done with no logical errors
-The over all user interface is very friendly, the images are fitting well in 
the view
-It was easy to interact and understand the view.

-I would only just that you may present the similarity percentage in a better 
way than "Sim% 70%" it was confusing at first a little bit.

good job :)

Original comment by eng.moni...@gmail.com on 29 Nov 2011 at 3:43

GoogleCodeExporter commented 8 years ago
One more comment I think u should add a descriptive title for you view 
"Matching dishes" or something

Original comment by eng.moni...@gmail.com on 29 Nov 2011 at 3:47