Skip to content

Latest commit

 

History

History
executable file
·
46 lines (30 loc) · 2.13 KB

README.md

File metadata and controls

executable file
·
46 lines (30 loc) · 2.13 KB

Date Rate

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.

Client side

Used technologies

Modules

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:

  1. LocalizationManager - it is responsible for localize a given DOM element, download the localization data and provide services the localization to be managed.
  2. RatingManager - it is respionsible for downloading the rating structure, rendering the rate screen based on a static HTML template using Handlebar.
  3. StarManager - it is responsilbe for managing the stars. It is responsible for selecting, deselecting stars, animations, fastclick, etc...
  4. StartPage - handle the events, changes of the fist page. The page is bound to a view-data-model using knockout.
  5. app.js - to handle the page changes, global configurations (e.g the gender, user language).

Server side

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).

Architecture

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:

  1. Perform the input parameters (POST params or JSON). Optional, only in case of POST and PUT requests.
  2. Execute some business logic depending on the inputs (e.g: join db table elements).
  3. Create JSON response

DB architecture

Define later

Communcation protocol

Define later