Giter Club home page Giter Club logo

daterate's Introduction

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

daterate's People

Contributors

balazsnemeth avatar lgabster avatar

Watchers

 avatar  avatar  avatar

daterate's Issues

Statusbar-style

Szintén a config.xml-be beletenni ezt a sort:

<preference name="ios-statusbarstyle" value="black-translucent" />

To many Device Permissions

Túl sok hozzáférése van az alkalmazásnak.

config.xml fájlban ami nem szükséges az alábbiak közül, azokat kiszedni:

<feature name="http://api.phonegap.com/1.0/camera"/>
<feature name="http://api.phonegap.com/1.0/contacts"/>
<feature name="http://api.phonegap.com/1.0/file"/>
<feature name="http://api.phonegap.com/1.0/geolocation"/>
<feature name="http://api.phonegap.com/1.0/media"/>
<feature name="http://api.phonegap.com/1.0/network"/>
<feature name="http://api.phonegap.com/1.0/notification"/>

Találtam még a config beállításokhoz pár dolgot, amik talán használhatóak: Project settings

<preference name="permissions" value="none" />
<preference name="orientation" value="default" />
<preference name="target-device" value="universal" />
<preference name="fullscreen" value="false" />
<preference name="webviewbounce" value="true" />
<preference name="prerendered-icon" value="true" />
<preference name="stay-in-webview" value="false" />
<preference name="ios-statusbarstyle" value="black-opaque" />
<preference name="detect-data-types" value="true" />
<preference name="exit-on-suspend" value="false" />
<preference name="show-splash-screen-spinner" value="true" />
<preference name="auto-hide-splash-screen" value="true" />
<preference name="disable-cursor" value="false" />
<preference name="android-minSdkVersion" value="7" />
<preference name="android-installLocation" value="auto" />

Image to database

Base64 Encoding

$im = file_get_contents('filename.gif');
$imdata = base64_encode($im);

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.