Due to the fact that lack of sleeping time negatively influences people's performance and health, it is critical to build an app to encourage people to pay attention to their sleeping habits. To achieve this goal, we model a "sleeping habit competition" based on personal social network. Users can choose whether to publish their sleeping record to social network and also gain the access to their friends' data.
What it does
Users link their accounts through Facebook so that their friends' data will be available as well. The app can rank the sleeping time, and display the top three "winner" in the sleeping competition and their own ranking.
How we built it
We use Facebook Api to connect people, HealthKit to collect sleeping data, SQLite to manage small pieces of data on iPhone, mLab (MongoDB) to maintain big data, Heroku to operate the whole system, NodeJS as server-side framework and language to apply high quality data structure calculation, and, the most important thing, Swift+HTML+CSS+jQuery to
Challenges we ran into
Accomplishments that we're proud of
Successfully find the Facebook friends and get access to their data.