Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # \<Config UI\> | 1 # LUCI Config UI |
| 2 | 2 |
| 3 This is a UI for the configuration service | 3 This is a UI for the configuration service. |
| 4 | 4 |
| 5 ## Install the Polymer-CLI | |
| 6 | 5 |
| 7 First, make sure you have the [Polymer CLI](https://www.npmjs.com/package/polyme r-cli) installed. Then run `polymer serve` to serve your application locally. | 6 ## Setting up |
|
Ryan Tseng
2017/07/19 20:53:36
I think the appengine SDK also needs to be install
ayanaadylova
2017/07/19 21:12:47
Done.
| |
| 8 | 7 |
| 9 ## Viewing Your Application | 8 *» First, make sure you have the [Polymer CLI](https://www.polymer-project. org/2.0/docs/tools/polymer-cli) installed. |
| 10 | 9 |
| 11 ``` | 10 *» Run 'bower install' to make sure you have all the dependecies installed. |
|
Ryan Tseng
2017/07/19 20:53:36
in which directory?
Also use backtick ` instead o
ayanaadylova
2017/07/19 21:12:47
Done.
| |
| 12 $ polymer serve | |
| 13 ``` | |
| 14 | 11 |
| 15 ## Building Your Application | |
| 16 | 12 |
| 17 ``` | 13 ## Running locally |
| 18 $ polymer build | |
| 19 ``` | |
| 20 | 14 |
| 21 This will create builds of your application in the `build/` directory, optimized to be served in production. You can then serve the built versions by giving `po lymer serve` a folder to serve from: | 15 *» First, change all the URLs in the iron-ajax calls. Simply add "https://l uci-config.appspot.com" before each URL. |
| 16 » *» One in the src/config-ui/front-page.html | |
|
Ryan Tseng
2017/07/19 20:53:36
** instead of <tab>*
ayanaadylova
2017/07/19 21:12:47
** doesn't work, so I used <tab>* instead.
| |
| 17 » *» Two in the src/config-ui/config-set.html | |
| 22 | 18 |
| 23 ``` | 19 *» In the config-service folder run 'dev_appserver.py app.yaml' |
|
Ryan Tseng
2017/07/19 20:53:36
`dev_appserver.py app.yaml`
it's a backtick inste
ayanaadylova
2017/07/19 21:12:47
Done.
| |
| 24 $ polymer serve build/default | 20 |
| 25 ``` | 21 *» Visit "http://localhost:8080" |
| 22 | |
| 26 | 23 |
| 27 ## Running Tests | 24 ## Running Tests |
| 28 | 25 |
| 29 ``` | 26 *» Your application is already set up to be tested via [web-component-teste r](https://github.com/Polymer/web-component-tester). |
| 30 $ polymer test | 27 » Run 'wct, 'wct -p' or 'polymer test' inside ui folder to run your applic ation's test suites locally. |
| 31 ``` | 28 » These commands will run tests for all browsers installed on your compute r. |
| 32 | |
| 33 Your application is already set up to be tested via [web-component-tester](https ://github.com/Polymer/web-component-tester). Run `polymer test` to run your appl ication's test suite locally. | |
| 34 | 29 |
| 35 ## Third Party Files | 30 ## Third Party Files |
| 36 | 31 |
| 37 In order to use proper authentication, the google-signin-aware element was neede d. However, this element has not been updated to Polymer 2.0, so edits were made to the current version to ensure compatibility. | 32 In order to use proper authentication, the google-signin-aware element was neede d. However, this element has not been updated to |
| 33 Polymer 2.0, so edits were made to the current version to ensure compatibility. | |
| 38 The modified google-signin-aware element can be found in the ui/common/third_par ty/google-signin folder. | 34 The modified google-signin-aware element can be found in the ui/common/third_par ty/google-signin folder. |
| OLD | NEW |