A website for tracking one's (vaguely health-oriented) promises. Discontinued.
Find a file
2017-01-13 15:55:19 +00:00
image-source New logo and top bar shading, home page completely revamped and now semi-final (bar the social stuff). Giant "how does this work" graphic. XCF image source checked in too. 2010-12-02 13:48:14 +00:00
images Added cutesy icons for certain days. 2010-12-22 20:13:09 +00:00
libraries First attempt at Heroku-compatible version 2013-05-01 21:54:08 +01:00
twitteroauth First check-in to git. Core functionality for a single test user is in place, as is some CSS. Next up: multi-user functionality, the homepage, friends/viewing other users. 2010-12-01 08:44:35 +00:00
.gitignore First attempt at Heroku-compatible version 2013-05-01 21:54:08 +01:00
.htaccess Edit promises. 2011-02-16 22:06:57 +00:00
_config.yml Set theme jekyll-theme-cayman 2017-01-12 22:08:12 +00:00
about.php Fix Github link 2013-03-04 21:41:48 +00:00
auth.php Profile pic URLs cached in user table so we don't have to query Twitter for them every time. 2010-12-04 17:17:50 +00:00
callback.php Mega update! Config page is done, account creation/deletion/password change is possible. 2010-12-01 16:34:04 +00:00
clearsessions.php Sorted out a few issues where things were appearing/disappearing for logged in/out users inappropriately. 2010-12-01 16:41:28 +00:00
common.php Pull user's timezone from Twitter and use it for all date-related operations. 2010-12-03 23:20:53 +00:00
config.php First attempt at Heroku-compatible version 2013-05-01 21:54:08 +01:00
configure.php Added page descriptions to each page's <title> tag. 2010-12-03 13:58:31 +00:00
cron-evening.php Fixed bug whereby the evening reminder tweet happened for days >= 7 rather than 1<n<=7. 2010-12-08 06:30:23 +00:00
cron-weekend.php Updated the weekend cron 'top users' tweet to ignore users on 0%. 2011-01-31 06:04:47 -08:00
cron.php Moved the script that adds "WAITING" fields to the records table into common.php so it can be run both on-demand from view.php and automatically by the cron. 2010-12-03 22:44:39 +00:00
dailypromise.sql Brought demo SQL back into line with the real DB, added credits for HolyHaddock, updated readme.txt. 2011-02-26 07:42:18 +00:00
default.css Widened the layout a bit. 2011-02-16 22:20:22 +00:00
edit.php Widened the layout a bit. 2011-02-16 22:20:22 +00:00
enter.php Removed a var_dump(...); die(); combo. 2011-02-16 22:33:18 +00:00
entercallback.php Take the number of days per week into account when calculating whether a NO should be recorded as NA or NO in the database. 2011-02-04 07:09:48 +00:00
favicon.ico Favicon goodness. 2010-12-02 20:49:44 +00:00
friends.php Profile pic URLs cached in user table so we don't have to query Twitter for them every time. 2010-12-04 17:17:50 +00:00
html.inc Added boring crap (about, privacy). 2010-12-04 14:39:26 +00:00
index.php Fixed previous week calculation bug, no longer showing 0% users on home page. 2011-01-04 07:13:25 -08:00
LICENCE Create LICENCE 2013-03-04 20:19:45 +00:00
logincallback.php So apparently, I can spend an hour and a half looking at the dump of a serialised variable without noticing the bit at the beginning that says "String(xx){". 2010-12-03 22:16:27 +00:00
manage.php Edit promises. 2011-02-16 22:06:57 +00:00
managecallback.php Added days field to database and promise creation, removed NA from daily entry page. 2010-12-22 23:27:40 +00:00
privacy.php Added boring crap (about, privacy). 2010-12-04 14:39:26 +00:00
README.md Update README.md 2017-01-13 15:55:19 +00:00
redirect.php First check-in to git. Core functionality for a single test user is in place, as is some CSS. Next up: multi-user functionality, the homepage, friends/viewing other users. 2010-12-01 08:44:35 +00:00
registercallback.php Modified auth calls so that non-logged-in users can now access /user/blah pages without being kicked back to home for not being authenticated. 2010-12-02 21:19:46 +00:00
sample.env First attempt at Heroku-compatible version 2013-05-01 21:54:08 +01:00
unregistercallback.php User visibility now implemented. Ubercommit! 2010-12-03 12:54:40 +00:00
view.php Fixed previous week calculation bug, no longer showing 0% users on home page. 2011-01-04 07:13:25 -08:00
visibilitycallback.php User visibility now implemented. Ubercommit! 2010-12-03 12:54:40 +00:00

Daily Promise

Whether it's chores, diets, jobs or simply finding time to relax, Daily Promise will help keep you in check! This is a web application built on the Twitter API that allows users to make "promises", then fill in whether they've kept them on a day-to-day basis, and compete to be the best.

I wrote this code a long time ago, and the quality of it it pretty bad, but it is functional. The site never really took off, and changes to the Twitter API have since broken the login mechanism, which is Twitter OAuth based. Development of this software has now been discontinued.

Development

A series of blog posts detail the development of the software:

  1. Daily Promise: Design Sketches
  2. Daily Promise: Coming Together
  3. Daily Promise: Avatars Everywhere!
  4. Announcing: Daily Promise!

Install on Heroku

  • Set up a MySQL database somewhere
  • Run:
    git clone https://github.com/ianrenton/DailyPromise.git
    cd DailyPromise
    cp sample.env .env
  • Edit .env in your favourite editor
  • Run:
    heroku apps:create
    heroku config:push