- Sign-in with their Google account
- Search for listing in different locations in the world
- See specific details about listings
- Book listings for a period of time
- Connect their Stripe account to be allowed to create listings and receive payments from other users
- Create listings of their own
- See a history of the listings they've created, the bookings they've made, and the bookings made to their own listings
- See a history of listings created by other users
- Go to console
- Click
credentials
on sidebar. Create credentials, select OAuth Client ID. - When choosing
scope
, select email, profile, openid - After finishing first steps above, click to
credentials
, select create OAuth Client ID again. Chooseweb application
, set authorized JS origins tohttp://localhost:...
- Enable Google People Api in console to let server get those info
- Enable Geocoding API in console
- Go to
credentials
tab and create a new API key. - Select
Restrict key
inAPI restrictions
section. ChooseGeocoding API
in dropdown. Nowsave
- Go to atlas and create index in collection
listings
{
"country": 1,
"admin": 1,
"city": 1
}
- Connect accounts with option
Platform or marketplace
- Add redirect URL to client (e.g: http://localhost:3000)
- Enable OAuth for Standard accounts. Check
view test data
- oAuth
- Charge
- Client payment