Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Latest commit

 

History

History

dart_frontend

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Australian Election front end

To develop, install Dartlang. Once all that is sorted, then:

$ cd dart_frontend
$ pub get
$ pub global activate grinder # Used in Makefile to format code and transcompile to JS

Grind is installed in $HOME/.pub-cache/bin. Please add this to your PATH.

To do local development, edit apiBaseUrl in lib/configuration.dart to point to an app engine instance with the API serving with CORS headers, and then:

$ pub serve &
$ open http://localhost:8080/

To publish, first change apiBaseUrl in lib/configuration.dart to /, then build and deploy:

$ make install
$ goapp deploy ../app/app.yaml

Suggested tooling

The Atom editor with the dartlang package. Install atom, then install dartlang, either in the Preferences pane (Atom|Preferences...), or from the command line:

$ apm install dartlang

This gives you syntax highlighting, code hints, and click to navigate. When the underlying dart analyzer gets confused, re-analyze sources (Packages|Dart|Re-analyze sources), and if that fails, re-start the analyzer (Packages|Dart|Analysis Server Status|Shutdown;Start).

Package docs

For dart's standard library - things imported like import 'dart:foo'; there is the API Reference. For third party dependencies installed via pub, there is dartdocs. Of particular interest in this project: