From bfaeef8790c5d76f912b0b4181c70098078c274e Mon Sep 17 00:00:00 2001 From: Rob Hedgpeth Date: Thu, 5 Dec 2019 15:10:14 -0600 Subject: [PATCH] Update README.md --- Places/README.md | 63 +++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/Places/README.md b/Places/README.md index 5bf37f9..2ab1115 100644 --- a/Places/README.md +++ b/Places/README.md @@ -17,7 +17,8 @@ This `README` will walk you through the steps for getting this app up and runnin 1. [Grab the code](#grab-code) 2. [Build the code](#build-code) 3. [Run the app](#run-app) -4. [Support and Contribution](#support-contribution) +4. [JSON Data Models](#data-models) +5. [Support and Contribution](#support-contribution) ## Overview @@ -161,6 +162,66 @@ npm start 3. Open a browser window and navigate to http://localhost:3000. +## JSON Data Models + +Below are samples of the data model per Location Type. + +**Attraction** +```json +{ + "category":"Landmark", + "lastVisitDate":"11/5/2019" +} +``` + +**Location** +```json +{ + "details":{ + "foodType":"Pizza", + "menu":"www.giodanos.com/menu" + }, + "favorites":[ + { + "description":"Classic Chicago", + "price":24.99 + }, + { + "description":"Salad", + "price":9.99 + } + ] +} +``` + +**Sports Venue** +```json +{ + "details":{ + "yearOpened":1994, + "capacity":23500 + }, + "events":[ + { + "date":"10/18/2019", + "description":"Bulls vs Celtics" + }, + { + "date":"10/21/2019", + "description":"Bulls vs Lakers" + }, + { + "date":"11/5/2019", + "description":"Bulls vs Bucks" + }, + { + "date":"11/5/2019", + "description":"Blackhawks vs Blues" + } + ] +} +``` + ## Support and Contribution Thanks so much for taking a look at the Places app! As this is a very simple example,there's a lot of potential for customization!