Giter Site home page Giter Site logo

what_to_wear's Introduction

What to Wear?

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).

What to Wear?

Data Model

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

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]"
}

tops

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"
}

bottoms

Pants, shorts, or whatever you wear on the bottom.

{
    "color": "gray",
    "created_at": 1567891563,
    "description": "Gray Shorts",
    "enabled": true,
    "length": "short",
    "user": "pgpa6ht0xrUaGyvnVycI"
}

shoes

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"
}

outfits

A selection of top, bottom, and shoe.

{
    "bottom": "IostngqsEWa8BThQYsoS",
    "shoe": "GJnQerscgmAhUp8SSB9h",
    "top": "8ilNYmsTHNEYtJbHAwRa",
    "ts": 1567891563,
    "user": "pgpa6ht0xrUaGyvnVycI"
}

unallowed_pairs

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"
}

Deployment

Environment Variables

TWILIO_ACCOUNT_SID: Twilio account SID.
TWILIO_AUTH_TOKEN: Twilio auth token.
TWILIO_FROM_NUMBER: Twilio number to send SMS from.

Google Cloud Firestore

Google Cloud Firestore is the document store used to back the service.

Google Cloud Functions

Google Cloud Functions is the runtime which executes the entry point function what_to_wear() in main.py.

Google Cloud Scheduler

Google Cloud Scheduler is configured to trigger the Cloud Function everyday at 5am PT: 0 5 * * *.

Twilio

Twilio is used to send SMS messages.

what_to_wear's People

Contributors

andrewnguonly avatar

Stargazers

 avatar

Watchers

 avatar  avatar

what_to_wear's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.