spf13/Milieu — pull request #1 by bsubrama (2012-07-17 05:59:24+00:00)
Title: OSCON MongoDB session - challenge

Hi,

The session was pretty informative, and I learned a lot. I ended up getting back and made some modifications and added some features to the base codebase you'd outlined in the session for the contest you'd mentioned in the end. The key additions are:

Admin/Non admin Users. Only an admin user can add more admin users. Will have to manually add the first admin user from mongo.
You can add new venues. The UI is very simple though - nothing fancy, and no error checking.
Checkins are timestamped and surfaced on the user's dashboard.
User Dashboard now has a map with a static image of all of the user's checkins, along with the num of unique locations and total number of checkins.
Added a Mayor feature to the venue page (basically whoever has checked in the most)

I haven't gotten around to connecting with actual 4sq location information or login w/ twitter since it involves interfacing with other thirdparty services.

You should look into some of the commit comments for the exact changes to the db required. Apart from adding an "admin" field to atleast one user manually via mongo, the initial data dump should work directly.

Hope this looks like a reasonable improvement :)

Cheers,
Brado