Git Product home page Git Product logo

safteycheck's Introduction

Saftey check

Witten by Jason Simone

How to test locally

The server.js file is a Node.js server definition which can host the application with the proper protocols for local testing. The node_modules folder is a self-contained set of node dependencies.

To test the app, navigate to the www folder and run the command:

node server.js

Then, in a browser navigate to:

http://localhost:8081/

To debug using weinre, run:

weinre --boundHost -all-

Then use the console located at:

http://localhost:8080/client/#nfc

How to package and run

To build the application, package the Application files listed below into a zip and upload it to PhoneGap Build. The application can then be installed or downloaded from the PhoneGap Build website.

To build a new Zepto distribution, download the make files (https://github.com/madrobby/zepto) and run:

npm install set MODULES=zepto event ajax form deferred callbacks fx npm run-script dist

About the file structure

The files present in the project folder serve a dual purpose. Some are components of the application as it should be packaged for PhoneGap Build. Others are modified for testing purposes, and should not be packed and submitted to the build service.

Application files

These files (only) must be included in the PhoenGap Build package:

  • \config.xml
  • \icon.png
  • \resources*
  • \www\css*
  • \www\font*
  • \www\js*
  • \www\lib*
  • \www\views*
  • \www\index.html
  • \www\start.html

Remote debugging (for testing)

These files may be optionally included to enable remote debugging from the brwoser or mobile device. They should not be deployed in production:

  • \www\js\debug*

Non-project files (for testing)

These files are for local testing infrastructure only and are not a component of the application project:

  • \www\node_modules*
  • \www\server.js

Modified PhoneGap project files (for testing)

These files have been modified to facilitate local testing and should not be replaced with files distributed in PhoneGap apks:

  • \www\cordova.js
  • \www\phonegap.js

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.