life-api jane kim
@janecakemaster
being an adult is hard
😔
fitness trackers and
apple watches
fitness trackers and
apple watches
😒
personal data +
code
life-api DIY personal tracking
what do you want to track?
become a better photographer
📸
good habits are built with with incremental wins
i have the data now what?
configurable goals - incremental - long term - small wins
+ +
let's write a personal api
what's a RESTful API?
REpresentational State
Transfer
Resource-based service
Constraints: uniform interface
stateless cacheable
client-server layered system
REST isn't going away
server routes
data store
logs are made up of inputs
every input is a time input with an optional text field
Use plurals
/logs/time-bedtime/inputs/
Short segments Granular resources
/logs/inputs
Mirror backend structure
PUT /logs/time-bedtime_logs.put(log) //pouchdb
thx tronno! @janecakemaster
https://github.com/janecakemaster/life-api