zrcadlo / undercurrent_api

The Backend of your Dreams: API for dream recording app
0 stars 0 forks source link

Next feature: Dream endpoints #5

Closed lfborjas closed 4 years ago

lfborjas commented 4 years ago

Dream endpoints!

Some notes from Tina:

Dreams:
id,
title,
date,
text,
emotions (as an array of strings),
lucid (as a boolean),
nightmare, (as a boolean)
recurring (as a boolean),
private (as a boolean),
starred (as a boolean)

Actions
- Get a person’s dreams
    - Option: Private or not
    - Use cases: pulling your own dreams (including private), looking at a specific user’s dreams (excluding private)
- Get dreams for everyone
    - Always non-private dreams
    - Include optional ability to pass dream property (lucid, nightmare, recurring, emotion, keyword, etc) OR user property (country, zodiac sign, gender you identify as), OR date range OR most recent X dreams
    - Use cases: setting the color of the sphere, viewing most recent dreams, getting the most recent dreams dream property
- Login / Logout / Change User Details (Name, email, password, birthday)
- Delete a user’s dreams
- Edit a user’s dreams
- Get statistics we’re pulling and usually calculating on the front end…
    - Most common words / topics - day / week / month / year
        - Lucid percent
        - Nightmare percent
        - Total dreams
        - Most common emotion
    - Most common emotions -  day / week / month / year
- Search public dreams

I feel a little poo poo because it looks like another app is already doing this pretty well:
https://play.google.com/store/apps/details?id=com.vojtkovszky.dreamcatcher&hl=en_US

---

list of emotions:

'joy', 'trust', 'anticipation', 'surprise', 'disgust', 'sadness', 'fear', 'anger', 'acceptance', 'admiration', 'affection', 'annoyance', 'alienation', 'amazement', 'anxiety', 'apathy', 'awe', 'betrayal', 'bitter', 'bold', 'boredom', 'bravery', 'brooding', 'calm', 'cautious', 'cheerful', 'comfortable', 'confused', 'cranky', 'crushed', 'curious', 'denial', 'despair', 'disappointed', 'distress', 'drained', 'eager', 'embarassed', 'empty', 'energized', 'envy', 'excited', 'foreboding', 'fulfilled', 'grateful', 'guilt', 'hatred', 'shame', 'helpless', 'hollow', 'hopeful', 'humiliated', 'hurt', 'inspired', 'intimidated', 'irritated', 'jealous', 'lazy', 'lonely', 'longing', 'love', 'lust', 'mellow', 'nervous', 'numb', 'panic', 'paranoia', 'peaceful', 'pity', 'powerful', 'powerless', 'protective', 'proud', 'reluctance', 'remorse', 'resentment', 'self-conscious', 'sensitive', 'shock', 'sick', 'shy', 'stressed', 'tired', 'alert', 'vigilant', 'weary', 'worry'

Notes from Luis:

lfborjas commented 4 years ago

Some investigation

lfborjas commented 4 years ago

Some notes/examples of advanced esqueleto/persistent use:

lfborjas commented 4 years ago

Some notes on timestamps and triggers:

https://stackoverflow.com/questions/35231697/how-to-let-default-values-come-from-the-database