This repository holds all the files that the site needs in order to run.
The technology stack of this site is base on the following frameworks:
The architecture is based heavily on AngularJS:
- common - used to store data types that are common to the entire app.
- content - used for css files and images.
- controllers - this layer handles the UI calls and bindings.
- directives - folder for all the directives.
- scripts - third level javascipt libraries used in this project.
- services - this layer hold the lower level data handling.
- parsers - parses files and converts them form string to dta model objects and back
- routers - handles the routing - currently there are 4 routers - hike, bike, fourbyfour and none.
- views - represents the UI - all HTML should be placed there
In order to be able to see this site you'll need some tools:
- Download and install Visual Studio 2015 or later.
- Using nuget install/update the following: TypeScript, Web Essentials, Chutzpah (both runner and context menu).
In order to be able to make the server work a few prerequisits are needed:
- Windows machine with IIS enabled and a site.
- Install Java Runtime Environment.
- Download and extract Graphhopper.
- Copy the elevation files from our IsraelHiking.DataAccess\elevation-cache to graphhopper folder\elevation-cahce.
- Install GpsBabel for windows.
- Download Israel pbf file from Geofabrik and place it * graphhopper folder\israel-and-palestine-latest.osm.pbf.
- Copy config-example.properties to graphhopper folder.
- java -jar graphhopper-web-0.5.0-with-dep.jar jetty.resourcebase=webapp config=config-example.properties osmreader.osm=israel-and-palestine-latest.osm.pbf.