Skip to content
This repository was archived by the owner on Feb 24, 2022. It is now read-only.

Commit

Permalink
docs(property): rename hotel to properties
Browse files Browse the repository at this point in the history
  • Loading branch information
92bondstreet committed Jan 19, 2019
1 parent 7a16ecc commit b28cc92
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 20 deletions.
27 changes: 13 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,9 @@

## 🐣 Introduction


## 🎯 Objectives

**List the best rates for each Weekend for France located Relais & Châteaux**
**List the best rates - for each Weekend - for France located Relais & Châteaux with starred restaurants**

## 🏃‍♀️ Steps to do

Expand Down Expand Up @@ -83,10 +82,10 @@ Node.js + React + Material Design (mdl, bootstrap, foundation...) + ES6 [+ docke

### Investigation

#### Hotels from Relais & Châteaux
#### Properties from Relais & Châteaux

1. How it works https://www.relaischateaux.com ?
1. How to get the list of Hotel + restaurant
1. How to get the list of `Hotel + restaurant`
1. How to identify the restaurant(s) name ?
1. How to compute the booking price for all weekend ? for a given weekend?

Expand All @@ -95,13 +94,13 @@ etc ...
Some things to do:

1. Browse the website
1. Check how that you can get list of hotels: api etc.... (check network activity)
1. Check how that you can get list of restaurants for a given hotel: api etc.... (check network activity)
1. define the JSON schema for Hotel
1. Check how that you can get list of properties: api etc.... (check network activity)
1. Check how that you can get list of restaurants for a given property: api etc.... (check network activity)
1. define the JSON schema for Property

etc ...

Example of Hotel: https://www.relaischateaux.com/fr/france/mercues-lot-mercues
Example of Property: https://www.relaischateaux.com/fr/france/mercues-lot-mercues

#### Michelin Restaurant

Expand Down Expand Up @@ -130,23 +129,23 @@ Some things to do:

#### require('castle')

Create a module called `castle` that returns the list of best rates for all Weekends for each Hotel
Create a module called `castle` that returns the list of best rates for all Weekends for each Property

```js
const castle = require('castle');
...
const restaurant = {...};
const property = {...};


const hotels = castle.getHotels();
const prices = castle.getPrices(restaurant);
const properties = castle.getProperties();
const prices = castle.getPrices(property);

...
```

Some things to do:

1. create the calls (api, http) to get the hotel page
1. create the calls (api, http) to get the Property page
1. get the restaurants name (by scraping or decoding api response)
1. check if the restaurant is starred.
1. get the price by Weekend (by scraping or decoding api response)
Expand Down Expand Up @@ -182,7 +181,7 @@ Next features:
* sorting by stars
* sorting by price
* sorting by distance

3. Bonus: Display on a map only Relais & Châteaux with starred restaurants.

### Notification (bonus)
Expand Down
12 changes: 6 additions & 6 deletions slides/WORKSHOP.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Relais & Châteaux
---

1. How it works [relaischateaux.com](https://www.relaischateaux.com)
2. How to get the list of Hotel + restaurant
2. How to get the list of `Hotel + restaurant`

---

Expand Down Expand Up @@ -192,26 +192,26 @@ Create a module called `castle`

---

that returns the list of best rate for all Weekends for each Hotel
that returns the list of best rate for all Weekends for each Property

---

```js
const castle = require('castle');
...
const restaurant = {...};
const property = {...};


castle.getHotels();
castle.getPrices(restaurant);
castle.getProperties();
castle.getPrices(property);

...

```

---

1. create the calls (api, http) to get the hotel page
1. create the calls (api, http) to get the Property page
1. check if the restaurant is starred.

---
Expand Down

0 comments on commit b28cc92

Please sign in to comment.