Skip to content
Norgeskart.no - version 3
JavaScript HTML CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
karma karma timeout-test Feb 27, 2017
src
.editorconfig Added .editorconfig (rules from ol3) Feb 16, 2017
.eslintrc.json improved eslint settings Mar 3, 2017
.gitignore merged master Feb 9, 2019
CODEOWNERS Create CODEOWNERS Jun 21, 2019
CONTRIBUTING.md Create CONTRIBUTING.md Feb 15, 2017
Gruntfile.js work on print and updates Jan 23, 2019
README.md merged master Feb 9, 2019
build.config.js Merge branch 'master' into development Feb 11, 2019
package-lock.json 2.0.10 Dec 4, 2019
package.json 2.0.10 Dec 4, 2019

README.md

Norgeskart3

Norgeskart version 3

The content of norgeskart.no and this repository is available under the following licenses:

The solution uses web services from Kartverket which are subject to their own licenses (mostly CC-BY 3.0 Norway) and the Norwegian Geodata law. See http://kartverket.no/data/lisens/ for the license terms and http://kartverket.no/data/ for details on the web services.

Installation

1. Install nodejs, make sure you can run the commands "node" in your preferred command line    
2. Install $ npm -g install grunt-cli karma
3. Install ruby and compass to build scss
    3.1 Install ruby 1.9.3 http://rubyinstaller.org/
    3.2 Add ruby executables to your PATH 
    3.3 Verify that the command "ruby -v" outputs the ruby version in your terminal
    3.4 run "gem update --system"
    3.5 run "gem install compass"    
4. Run "npm install" on the command line from within the fetched directory
5. Build and run unit tests with "grunt default"

Learn

At a high level, the structure looks roughly like this:

ng-boilerplate/
  |- grunt-tasks/
  |- karma/
  |- src/
  |  |- app/
  |  |  |- <app logic>
  |  |- assets/
  |  |  |- <static files>
  |  |- common/
  |  |  |- <reusable code>
  |  |- less/
  |  |  |- main.less
  |- build.config.js
  |- Gruntfile.js
  |- module.prefix
  |- module.suffix
  |- package.json

What follows is a brief description of each entry, but most directories contain their own README.md file with additional documentation, so browse around to learn more.

  • karma/ - test configuration.
  • src/ - our application sources. Read more »
  • build.config.js - our customizable build settings.
  • Gruntfile.js - our build script.
  • module.prefix and module.suffix - our compiled application script is wrapped in these, which by default are used to place the application inside a self-executing anonymous function to ensure no clashes with other libraries.
  • package.json - metadata about the app, used by NPM and our build script. Our NPM dependencies are listed here.
You can’t perform that action at this time.