https://github.com/vega/polestar
Raw File
Tip revision: b8af3347b4404436a76b10d1b0ebdef09c588852 authored by Dominik Moritz on 16 February 2015, 06:19:37 UTC
Fixes #158
Tip revision: b8af334
README.md
# vegalite-ui

Tableau-style User Interface for visual analysis, building on top of vegalite. Try our [demo](http://uwdata.github.io/vegalite-ui/).

## Development Setup Instruction

### Directory Setup

Create a folder `_visrec` somewhere you want to work in.  Then clone this repo and [vegalite](https://github.com/uwdata/vegalite) to be under `_visrec`.  

Before proceeding to the next steps, setup vegalite repo too. 

### Install Dependencies

Make sure you have node.js. (We recommend using [homebrew](http://brew.sh) and simply run `brew install node`.)

Install gulp + bower globally by running

```sh
npm install -g bower
npm install -g gulp
```

Then install all the npm, bower dependencies:

```bash
npm install --dev
bower install --dev
```

Now you should have all dependencies and should be ready to work. 

### Developing

You can run `gulp serve`, which serves the site as well as running tests in the background.
If you edit any file, our gulp task runner should automatically refresh

#### Folder Structure

We try to follow [Google's Angular Best Practice for Angular App Structure](https://docs.google.com/document/d/1XXMvReO8-Awi1EZXAXS4PzDzdNvV6pGcuaF4Q9821Es/pub) and use [generator-gulp-angular](https://github.com/Swiip/generator-gulp-angular) to setup the project.  

All source code are under `src/`

- `src/app/` contains our main classes
- `src/components` contains our other components
- `src/components/filter` contains all filter
- `src/assets/images/` contains relevant images
- `src/data/` contains all data that we use in the application 
- `src/vendor` contains 



@kanitw have create [`gulp/gen.js`](https://github.com/uwdata/vegalite-ui/blob/master/gulp/gen.js) for help generating angular components.  
For example, you can run `gulp gen -d directiveName` and this would create all relevant files

#### stylesheet

We use [sass](http://sass-lang.com) as it is a better syntax for css.

Other common stylesheets that should be shared with https://github.com/uwdata/facetedviz should be under `src/assets/vlui-common.scss`



### Releasing / Github Pages

`gh-pages` branch is for releasing a stable version.
`gh-pages` should only contain the dist folder.

Use `deploy.sh` to deploy the current branch to gh-pages.


back to top