Project Idea/Application Premise/The Excuse
People are funny about money, especially about their salary. With most people, it’s a taboo to talk about it. But everyone’s been curious at some point to know how they compare to their peers. Some people fear they are getting paid less to do the same work as others, and sometimes that fear is founded in fact. The “Share Your Salary” app is an anonymous salary survey tool to address these kinds of use cases.
Before we get into any of the tools or how-to, feel free to check out the application first or look over the source.
Well I started to write this section, turned out to be about a thousand words… so I moved it to it’s own separate post. In short, OpenShift is a PaaS hosting service. OpenShift hosts the entire Share Your Salary app, including a MongoDB container, an HAProxy load balancer, and Apache/PHP containers in an auto-scaling group.
I used MongoDB as the backend for the “Share Your Salary” app.
Fat Free Framework (or F3 for short) is a tiny PHP framework (it’s only ~65 KB in total) that provides URL routing, caching, page templating, and built-in database support for MySQL, SQLite, MSSQL/Sybase, PostgreSQL, MongoDB and F3’s proprietary flat-file DB called Jig.
I used F3 for both templating web front-end as well as the API.