A simple Node server & web app with SQLite database for field-testing & analysis of the Background Geolocation plugin.
You must have npm installed on your computer. From the root project directory run these commands from the command line:
npm install
This will install all dependencies.
To build the project, first run this command:
npm start
This will perform an initial build and start a watcher process that will update bundle.js with any changes you wish to make. This watcher is based on Browserify and Watchify, and it transforms React's JSX syntax into standard JavaScript with Reactify.
To run the app in your browser, boot the web server
node server.js
Now visit http://localhost:8080
The Background Geolocation Sample App is perfect for use with this web-application. To configure the app, simply edit Settings->url
and set it to http://<your.ip.ad.dress>:8080/locations
.
You should also configure Settings->autoSync
to false
while out field-testing as well, so that the app doesn't try syncing each recorded location to the server running on your localhost
. Once you return after a test and you're back on your office Wifi, click the [Sync] button on the Settings
screen to upload the cached locations to the Background Geolocation Console server.
Chris Scott of Transistor Software
BSD-licensed.