meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
opendata2015:group4:start [2015/03/05 19:19]
anarabanana
opendata2015:group4:start [2015/03/16 10:25] (current)
m1371
Line 1: Line 1:
-====== TEAM ======+====== Good morning team @ODCC2015 ====== 
 + 
 + 
 +{{ :opendata2015:group4:images.jpg?200|}} 
 +|            ^localEAT production ^ 
 +^ 1  | Anar Bazarhanova              | 
 +^ 2  | Khan Mohammad Habibullah      | 
 +^ 3  | Marie Leslie Melanie Pittumbur| 
 +^ 4  | Julien Dhallenne              | 
 + 
 +====== Poster, Presentation & Report ====== 
 + 
 +{{:opendata2015:group4:localeat_-_poster.pdf|}} 
 +{{:opendata2015:group4:presentation.pdf|}} 
 +{{:opendata2015:group4:localeat_report.docx.pdf|}}
  
-  * Anar Bazarhanova 
-  * Khan Mohammad Habibullah 
-  * Marie Leslie Melanie Pittumbur 
-  * Julien Dhallenne 
  
 ====== What is LocalEAT ====== ====== What is LocalEAT ======
Line 44: Line 54:
  Once the tasks were decided, we realized a first draft of our client application communication with our REST API.  Once the tasks were decided, we realized a first draft of our client application communication with our REST API.
 Here is the PNG result : Here is the PNG result :
-{{ :opendata2015:group4:first_draft_arch.png?500 |}}+{{ :opendata2015:group4:first_draft_arch.png?450|}}
  
 and the source file : https://drive.google.com/file/d/0B34EEgIPSoIrVTVPX3ZtcEdySjA/view?usp=sharing and the source file : https://drive.google.com/file/d/0B34EEgIPSoIrVTVPX3ZtcEdySjA/view?usp=sharing
Line 50: Line 60:
 We also worked on a decent logo for our application. The result is the following : We also worked on a decent logo for our application. The result is the following :
  
-{{:opendata2015:group4:font_edited.png?200|}}+{{:opendata2015:group4:font_edited.png?300|}}
  
 Finally for the back-end server side, it was agreed that the MEAN stack would be deployed on the Cloud 9 hosting platform.  Finally for the back-end server side, it was agreed that the MEAN stack would be deployed on the Cloud 9 hosting platform. 
Line 56: Line 66:
  
 ====== Day 2 ====== ====== Day 2 ======
 + The second day is dedicated to create a mongoDB database to hold products and markets collections that will provide the client application with required information. The database is functional but some problems are encountered to link the database to the NodeJs server.  
  
- The second day is dedicated to create a mongoDB database to hold products and markets collections that will provide the client application with required information. The database is functional but some problems are encountered to link the database to the NodeJs server. + On another side, the client application design, using the Ionic tool and based on the AngularJS framework, is on its way and the following screenshots can already be made available (the data is a little random) : 
- +
- On another side, the client application design, using the Ionic tool and based on the AngularJS framework, is on its way and the following screenshots can already be made available (the data is a little random) :+
  
 ^   iPhone 4 view  ^   Nexus 5 view   ^ ^   iPhone 4 view  ^   Nexus 5 view   ^
-|{{:opendata2015:group4:nexus5_view.png?200|}} | {{:opendata2015:group4:iphone4_view.png?200|}}|+|{{ :opendata2015:group4:nexus5_view.png?300 |}} | {{ :opendata2015:group4:iphone4_view.png?300 |}}| 
  
  
Line 70: Line 80:
  On the third day, the connection problem between the database and the server has been solved. The design of the Rest API interface has started so that new products and new markets can be added to the database when POST method is issued, entire list of products and markets and list of products depending on market criteria can be listed when receiving  using appropriate requests from the browser. For the communication between the client and the server, the data is exchanged in JSON format.   On the third day, the connection problem between the database and the server has been solved. The design of the Rest API interface has started so that new products and new markets can be added to the database when POST method is issued, entire list of products and markets and list of products depending on market criteria can be listed when receiving  using appropriate requests from the browser. For the communication between the client and the server, the data is exchanged in JSON format. 
  
-{{:opendata2015:group4:meanstack.jpg?200|}}+{{ :opendata2015:group4:meanstack.jpg?450|}}
  
  On the client-side the data structures for the products and markets are defined and the communication with the server through the Rest API is tested and debugged until it works.  On the client-side the data structures for the products and markets are defined and the communication with the server through the Rest API is tested and debugged until it works.
Line 96: Line 106:
    
  
 +====== Example of REST Api data sets ======
 +  * GETting response of a particular market:
 +<code>
 +   {  
 +      "_id":"54f8258e9783a587422f1c94",
 +      "name":"Hakaniemen Kauppahalli",
 +      "desc":"Hakaniemen Kauppahallissa on 38 elintarvikeliikettä 1. kerroksessa ja 28 erikoisliikettä 2. kerroksessa. 
 +      Arkkitehti Karl Hård af Segerstadin suunnittelema Hakaniemen Kauppahalli avattiin vuonna 1914.",
 +      "lat":"60.180055",
 +      "lng":"24.950989",
 +      "address":"Hakaniemen Kauppahalli, Hämeentie, Suomi",
 +      "postcode":"00530",
 +      "town":"Helsinki",
 +      "opening_time":"ma-pe 8-18; la 8-16",
 +      "photo":"http://www.hakaniemenkauppahalli.fi/wp-content/uploads/2014/01/halli-400x266.jpg"
 +   },
 +</code>
 + * POSTing a new product:
 +<code>
 + {  
 +      "_id":"54f84be39783a587422f1c9b",
 +      "name":"Zucchinis",
 +      "price":4,
 +      "desc":"Good source of vitamins A and niacin.",
 +      "origin":"Etelä-Savo",
 +      "measureunit":"kg",
 +      "market_id":"54f8258e9783a587422f1c94",
 +      "photo":"http://d33y93cfm0wb4z.cloudfront.net/Jen_Cheung/Catagory%20Pictures/Zucchini.article.jpg"
 +   },
 +</code>
 +  * Querying products list by a market_id attribute:
 +<code>
 +  {  
 +      "_id":"54f84c609783a587422f1c9d",
 +      "name":"Watermelon",
 +      "price":6,
 +      "desc":"Antibacterial and anti-cancer. Contains vitamin A and C, as well as iron and potassium. Their high water content makes them ideal for juicing.",
 +      "origin":"Keski-Pohjanmaa",
 +      "measureunit":"kg",
 +      "market_id":"54f8258e9783a587422f1c94",
 +      "photo":"http://www.fut-science.com/wp-content/uploads/2014/07/watermelon.jpg"
 +   },
 +</code>
 +  *  localEAT Back-end implementation can be accessible via {{:opendata2015:group4:firstproject.tar.gz|}}
 +
 +====== Night 4 ======
 +
 +  * Client application views:
 +{{:opendata2015:group4:screen_shot_2015-03-05_at_23.03.05.png?200|}}
 +{{:opendata2015:group4:screen_shot_2015-03-05_at_23.03.48.png?200|}}
 +{{:opendata2015:group4:screen_shot_2015-03-05_at_23.04.08.png?200|}}
 +{{:opendata2015:group4:screen_shot_2015-03-05_at_23.03.19.png?200|}}
 +{{:opendata2015:group4:screen_shot_2015-03-05_at_23.04.22.png?200|}}