GreenNav Web-App
This project aims to provide a reference implementation for the GreenNavigation front end. It makes use of the different polymer elements created for GreenNav.
Getting Started
Prerequisites
-
Install the latest version of Node.js and NPM
For Mac OS X or Windows you can download the pre-build installers from https://nodejs.org/en/download/ . If you use Linux we recommend to add Node.js to your sources. Eg. for Ubuntu based distributions the most up-to-date ppa is provided by https://launchpad.net/~chris-lea/+archive/node.js/
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
- Get bower
sudo npm install -g bower
(Windows: just npm install -g bower)
Setup
- Clone the repository
- Install the dependencies
bower install
Run
You can use python -m SimpleHTTPServer
but we prefer to use polyserve
as it restarts on code changes
sudo npm install polyserve -g
Now you can simply run
polyserve -p 8000
And the front end is now accessible at http://localhost:8000/.
Development
Git Workflow
- Please fork the repository
- Clone the webapp repository from your github account
git clone https://github.com/$(GITHUB_USER)/webapp.git
- Create a new feature branch
cd webapp
git checkout -b your-feature
- Make local changes and implement your feature
- Push your branch to GitHub
- Open a pull request
Create own elements
In order to create a new reusable custom element to use here, check out the official guide at the polymer website and request a new repository. For examples, check out the different existing elements used in this project.