The Date Rate is a web based mobile app, at first it is specialized to rate a date.
This is a PhoneGap project optimized for mobile (mobile first, web second strategy). This project is still in progress, so the code and the functionalities are not finalized. Currently only the first and the third (page5.html) page is in operation. I just doing this project for fun in my freetime.
The app is built from independent JS modules (little manager objects). The modules are defined as AMD (require.js) just like the previous JS libs. The list of the more-or-less completed modules:
- LocalizationManager - it is responsible for localize a given DOM element, download the localization data and provide services the localization to be managed.
- RatingManager - it is respionsible for downloading the rating structure, rendering the rate screen based on a static HTML template using Handlebar.
- StarManager - it is responsilbe for managing the stars. It is responsible for selecting, deselecting stars, animations, fastclick, etc...
- StartPage - handle the events, changes of the fist page. The page is bound to a view-data-model using knockout.
- app.js - to handle the page changes, global configurations (e.g the gender, user language).
The server is written in php. Currently it is so simple, that I decided not to use a third party MVC implementation (e.g Zend).
The communication is based on REST API concept, as a result each .php file is specialized to perform a given operation using the following abstract schema:
- Perform the input parameters (POST params or JSON). Optional, only in case of POST and PUT requests.
- Execute some business logic depending on the inputs (e.g: join db table elements).
- Create JSON response
Define later
Define later