Can't decide what to wear? Or maybe you forgot what you wore the other day and don't want to rewear the same thing? What to Wear? is a service for picking out what to wear everyday. Discover new outfits and wear your clothes more evenly!
The service will send you an SMS message everyday (or configurable by day of the week).
Data is modeled as documents. The document types described below are displayed as JSON. However, the JSON field types can be translated to an appropriate type for a given document store.
Users of the service.
{
"created_at": 1567891563,
"days": [true, true, true, true, true, false, false],
"enabled": true,
"first": "Andrew",
"last": "Nguonly",
"phone": "+18881234567",
"email": "[email protected]"
}
Shirts, sweaters, or whatever you wear on the top.
{
"color": "black",
"created_at": 1567891563,
"description": "Black Koto Chest Pocket Tee",
"enabled": true,
"sleeve": "short",
"type": "tee",
"user": "pgpa6ht0xrUaGyvnVycI"
}
Pants, shorts, or whatever you wear on the bottom.
{
"color": "gray",
"created_at": 1567891563,
"description": "Gray Shorts",
"enabled": true,
"length": "short",
"user": "pgpa6ht0xrUaGyvnVycI"
}
Sneakers, boots, or whatever you wear on the feet.
{
"brand": "vans",
"color": "black",
"created_at": 1567891563,
"description": "Black Vans Sk8-Hi",
"enabled": true,
"type": "sneaker",
"user": "pgpa6ht0xrUaGyvnVycI"
}
A selection of top, bottom, and shoe.
{
"bottom": "IostngqsEWa8BThQYsoS",
"shoe": "GJnQerscgmAhUp8SSB9h",
"top": "8ilNYmsTHNEYtJbHAwRa",
"ts": 1567891563,
"user": "pgpa6ht0xrUaGyvnVycI"
}
A pair of top/bottom, bottom/shoe, top/shoe, etc. This pair cannot be selected in the same outfit.
{
"user": "pgpa6ht0xrUaGyvnVycI",
"type_1": "bottom",
"id_1": "IostngqsEWa8BThQYsoS",
"type_2": "top",
"id_2": "8ilNYmsTHNEYtJbHAwRa"
}
TWILIO_ACCOUNT_SID
: Twilio account SID.
TWILIO_AUTH_TOKEN
: Twilio auth token.
TWILIO_FROM_NUMBER
: Twilio number to send SMS from.
Google Cloud Firestore is the document store used to back the service.
Google Cloud Functions is the runtime which executes the entry point function what_to_wear()
in main.py
.
Google Cloud Scheduler is configured to trigger the Cloud Function everyday at 5am PT: 0 5 * * *
.
Twilio is used to send SMS messages.