You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A simple user interface, built with Electron, useful to interact with the database is available [here](https://github.com/bfil/exar-db/tree/master/exar-ui), but it currently needs to be run from source.
A basic Exar DB's user interface, built with [Aurelia](http://aurelia.io), [Electron](http://electron.atom.io) and [TypeScript](https://www.typescriptlang.org)
4
4
5
5
## Running The App
6
6
@@ -36,25 +36,12 @@ To run the app, follow these steps.
36
36
gulp build
37
37
```
38
38
39
-
7. To run the app, execute the following command:
40
-
41
-
```shell
42
-
gulp watch
43
-
```
44
-
8. Browse to [http://localhost:9000](http://localhost:9000) to see the app. You can make changes in the code found under `src` and the browser should auto-refresh itself as you save files.
45
-
46
-
> The Skeleton App uses [BrowserSync](http://www.browsersync.io/) for automated page refreshes on code/markup changes concurrently accross multiple browsers. If you prefer to disable the mirroring feature set the [ghostMode option](http://www.browsersync.io/docs/options/#option-ghostMode) to false.
47
-
48
-
## Running The App under Electron
49
-
50
-
To run the app under [Electron](http://electron.atom.io), follow these steps.
51
-
52
-
1. Install [Electron](http://electron.atom.io)
39
+
7. Install [Electron](http://electron.atom.io)
53
40
54
41
```shell
55
42
npm install electron-prebuilt -g
56
43
```
57
-
2. To start the app, execute the following command:
44
+
8. To start the app, execute the following command:
58
45
59
46
```shell
60
47
electron index.js
@@ -70,25 +57,19 @@ To start the app, execute the following command:
70
57
electron .
71
58
```
72
59
73
-
##Bundling
60
+
## Development
74
61
75
-
Bundling is performed by [Aurelia Bundler](http://github.com/aurelia/bundler). A gulp task is already configured for that. Use the following command to bundle the app:
62
+
1. Run the app in watch mode, execute the following command:
76
63
77
64
```shell
78
-
gulp bundle
65
+
gulp watch
79
66
```
80
67
81
-
You can also unbundle using the command bellow:
68
+
2. Then start the app in electron in a separate terminal, execute the following command:
82
69
83
70
```shell
84
-
gulp unbundle
71
+
electron index.js
85
72
```
86
-
#### Configuration
87
-
88
-
The configuration is done by ```bundles.json``` file.
89
-
90
-
##### Optional
91
-
Under ```options``` of ```dist/aurelia``` add ```rev: true``` to add bundle file revision/version.
92
73
93
74
## Running The Unit Tests
94
75
@@ -111,38 +92,3 @@ jspm install aurelia-router
111
92
```shell
112
93
karma start
113
94
```
114
-
115
-
## Running The E2E Tests
116
-
Integration tests are performed with [Protractor](http://angular.github.io/protractor/#/).
117
-
118
-
1. Place your E2E-Tests into the folder ```test/e2e/src```
119
-
2. Install the necessary webdriver
120
-
121
-
```shell
122
-
gulp webdriver-update
123
-
```
124
-
125
-
3. Configure the path to the webdriver by opening the file ```protractor.conf.js``` and adjusting the ```seleniumServerJar``` property. Typically its only needed to adjust the version number.
126
-
127
-
4. Make sure your app runs and is accessible
128
-
129
-
```shell
130
-
gulp watch
131
-
```
132
-
133
-
5. In another console run the E2E-Tests
134
-
135
-
```shell
136
-
gulp e2e
137
-
```
138
-
139
-
## Exporting bundled production version
140
-
A gulp task is already configured for that. Use the following command to export the app:
141
-
142
-
```shell
143
-
gulp export
144
-
```
145
-
The app will be exported into ```export``` directory preserving the directory structure.
146
-
#### Configuration
147
-
The configuration is done by ```bundles.json``` file.
148
-
In addition, ```export.json``` file is available for including individual files.
0 commit comments