This is local-review component of Trulia.com real estate application. It displays the reviews of local neighbors for the property. Also you can see the current ratings of features and expand the view to see more.
- https://github.com/Archon-Design/AffordabilityCalculator
- https://github.com/Archon-Design/similar-homes-service
- https://github.com/Archon-Design/PhotoGallery
to get started, run
npm installthennpm start
An nvmrc file is included if using nvm.
- Node 6.13.0
- etc
From within the root directory:
npm install -g webpack
npm install- GET
/api/reviews/:{id}
review_id| review ID
Returns: JSON
{
"review_id": "Integer",
"parent_id": "Integer",
"review": "String",
"type": "String",
"liked": "Integer",
"posted": "Date",
}
- POST
/api/reviews/
- none
Returns: success
- PUT
/api/reviews/:{id}
review_id| Review ID
Returns: success
- DEL
api/reviews/:{id}
review_id| Review ID
Returns: success
- GET
/api/reviews/:{id}
user_id| user ID
Returns: JSON
{
"username": "string",
"resident": "bool",
"thumbnail_url": "string",
"email": "string",
"password": "hash"
}
- POST
/api/users/
- none
Returns: success
- PUT
/api/users/:{id}
user_id| user ID
Returns: success
- DEL
api/users/:{id}
user_id| user ID
Returns: success
- GET
/api/flags/:{id}/{flag_option}
review_id| review IDflag_option| flag option string
Returns: JSON
{
"flags_count": "number",
"user": "string",
}
- GET
/api/locations/:{id}
location_id| location ID
Returns: JSON
{
"walk_groceries": "number",
"kids_outside": "number",
"quiet": "number",
"car_req": "number",
"comm_events": "number",
"sidewalks": "number",
"walk_at_night": "number",
"wildlife": "number",
"walk_res": "number",
"streets_lit": "number",
"neighbors_friendly": "number",
"park_friendly": "number",
"plan_5_yrs": "number",
"well_kept_yards": "number",
"holiday_spirit": "number",
"dog_friendly": "number",
}
- PUT
/api/locations/:{location_id}/:{user_id}/{location_feature}
-
location_id| location ID -
user_id| user ID -
location_feature| individual feature
Returns: success

