# Done

[Ionic Tutorial](http://ionicframework.com/docs/guide/starting.html)

## Requirements

### BB10

- [Java JRE6](www.oracle.com/technetwork/java/javase/downloads/java-archive-downloads-javase6-419409.html)
- [Webworks SDK](https://developer.blackberry.com/html5/downloads/)

## Initialize

[Documentation](http://ionicframework.com/docs/guide/installation.html)

```bash
npm install -g cordova ionic
ionic start <project_name> blank
```

## Install

```bash
cd <project_name>
ionic platform add blackberry10
npm install
```

## Build & Deploy

### BB10

#### Generates debug token

```bash
blackberry-debugtokenrequest -storepass <bbidtoken_password> -devicepin 2B59BC20 blackberry10debugtoken.bar
blackberry-deploy -installDebugToken blackberry10debugtoken.bar -device <device_ip> -password <device_password>
```

#### Install on device

```bash
ionic build blackberry10
webworks run --no-build --no-launch
```
