Giter Club home page Giter Club logo

hours's Introduction

Hours

A PhoneGap client-side app for connecting to a REST-ish ASPX SQL server-side.

PhoneGap

I'm using PhoneGap as the cross-platform framework since I need support for both iOS and Android smartphones. This is a work-related project in which I'm adding mobile support to a web-based app that I've already written.

Server-side code

The server side doesn't have to be Microsoft ASPX pages but I'm grafting this onto an existing project and that's what the existing pages are so it's convenient enough. It's co-located on a SQL Server in IIS; each ASPX page includes a directive to be ASP-compatible, for what it's worth. The server side code currently isn't included in this repository but responds via the following using an ASP-friendly tweak to REST interface:

Table READs

http://servername/reports/hours/mobile*/**customers* http://servername/reports/hours/mobile*/**jobs* http://servername/reports/hours/mobile*/**users* http://servername/reports/hours/mobile*/**time*

The servername and /reports/hours/mobile/ folder location is from my own project but can be easily customized in one place in your project's js/config.js.

Each smartphone's UUID uniquely identifies the user lookup so that they don't have to authenticate. This comes in via a /?uuid=value argument pair for every call. I'm currently hard-coding those UUIDs server-side since I don't feel like creating another table in SQL Server (yet).

User records

There are two user types: admins and users. An admin would be able to add customer, user and job records. A user would be able to add only time records for himself/herself. Since there's only one admin--myself--I've hard-coded this in the server-side code for simplicity.

SQL to JSON

I'm converting the SQL records into JSON during server-side reporting to make this easier for PhoneGap/jQuery to process the records.

jQuery Mobile

I'm taking advantage of jQuery Mobile for a consistent rendering of buttons and to easily manipulate the DOM.

Donate Cryptocurrency
eth-receive btc-receive
Ethereum Bitcoin

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.