Code Monkey home page Code Monkey logo

opentrails-mobile's Introduction

OpenTrails Mobile

Added a development branch.

OpenTrails Mobile is a PhoneGap/Cordova app designed to offer trail visitors a useful map of the trail system in their region, offline, across devices.

OpenTrails Mobile is a reference implementation of OpenTrails (the Open Trail System Specification), a data format developed by Code for America partners in Northeast Ohio, with guidance from the National Recration and Parks Association, GreenInfo Network, and ESRI R&D in Portland, among many others. OpenTrails Mobile can be configured to consume OpenTrails from the API of your choice.

At present, OpenTrails Mobile has only been thoroughly tested on iOS devices.

to-the-trails-screens

Installation

Note: the following requires that nodejs is installed, follow the node installation instructions for your system if needed.

Install the project dependencies with:

npm install

Once you have Cordova installed, clone the GitHub repo. In the following command, change YOUR_PROJECTS_DIRECTORY to the directory you want the project to be downloaded into:

git clone https://github.com/codeforamerica/trails-mobile ~/YOUR_PROJECTS_DIRECTORY/trails-mobile

Now navigate to the directory with:

cd ~/YOUR_PROJECTS_DIRECTORY/trails-mobile

To build and launch the application from the source code and view it in the iOS emulator, use:

./node_modules/.bin/cordova build ios
./node_modules/.bin/cordova emulate ios

If you'd prefer to view it in a web browser use:

./node_modules/.bin/cordova serve ios

Then to view the application visit localhost:8000/ios/www/ in your web browser.

If you'd prefer not to have to type out the node modules path each time, you'll need to add the node modules directory ./node_modules/.bin to your PATH environment variable.

Development

If you work on the project and update the less file in www/less/application.less run grunt less to compile the CSS changes, or grunt watch to continuously compile the CSS changes while you work.

You can check JavaScript code quality by running grunt jshint.

##Contribution

  • Fork the project.
  • Make your feature addition or bug fix and commit the changes.
  • Send a pull request. Bonus points for topic branches.

opentrails-mobile's People

Contributors

alanjosephwilliams avatar anselmbradford avatar mr0grog avatar jmoe avatar

Watchers

James Cloos avatar

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.