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
Copy file name to clipboardExpand all lines: README.md
+25-28Lines changed: 25 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -113,7 +113,7 @@ Paste the URL in the input field on the home page.
113
113
114
114
That's it!
115
115
116
-
**Note**: When using the BYOR app on [radar.thoughtworks.com](https://radar.thoughtworks.com), the ring and quadrant names should be among the values mentioned in the [example above](#setting-up-your-data). This holds good for Google Sheet, CSV or JSON inputs.
116
+
**_Note:_** When using the BYOR app on [radar.thoughtworks.com](https://radar.thoughtworks.com), the ring and quadrant names should be among the values mentioned in the [example above](#setting-up-your-data). This holds good for Google Sheet, CSV or JSON inputs.
117
117
For a self hosted BYOR app, there is no such condition on the names. Instructions to specify custom names are in the [next section](#more-complex-usage).
118
118
119
119
Check [this page](https://www.thoughtworks.com/radar/byor) for step by step guidance.
Note: The other environment variables mentioned in the previous section can be used with `docker run` as well.
170
+
**_Notes:_**
171
+
172
+
- The other environment variables mentioned in the previous section can be used with `docker run` as well.
173
+
- Docker images for all the [releases](https://github.com/thoughtworks/build-your-own-radar/releases) are available with their respective tags (eg: `wwwthoughtworks/build-your-own-radar:v1.0.0`).
171
174
172
175
### Advanced option - Docker image with a CSV/JSON file from the host machine
173
176
@@ -178,20 +181,20 @@ You can check your setup by clicking on "Build my radar" and by loading the `csv
- Spawn a server that will listen locally on port 8080.
188
191
- Mount the host volume on `/mnt/radar/files/` into the container on `/opt/build-your-own-radar/files/`.
189
-
- Open http://localhost:8080 and for the URL enter: http://localhost:8080/files/${NAME_OF_YOUR_FILE}.${EXTENSION_OF_YOUR_FILE[csv/json]}. It needs to be a csv/json file.
192
+
- Open http://localhost:8080 and for the URL enter: `http://localhost:8080/files/<NAME_OF_YOUR_FILE>.<EXTENSION_OF_YOUR_FILE[csv/json]>`. It needs to be a csv/json file.
190
193
191
194
You can now work locally on your machine, updating the csv/json file and render the result back on your browser.
192
195
There is a sample csv and json file placed in `spec/end_to_end_tests/resources/localfiles/` for reference.
193
196
194
-
**_Note:_**
197
+
**_Notes:_**
195
198
196
199
- If API Key is also available, same can be provided to the `docker run` command as `-e API_KEY=[Google API Key]`.
197
200
- For setting the `publicPath` in the webpack config while using this image, the path can be passed as an environment variable called `ASSET_PATH`.
@@ -201,38 +204,32 @@ There is a sample csv and json file placed in `spec/end_to_end_tests/resources/l
201
204
All tasks are defined in `package.json`.
202
205
203
206
Pull requests are welcome; please write tests whenever possible.
204
-
Make sure you have nodejs installed.
207
+
Make sure you have nodejs installed. You can run `nvm use` to use the version used by this repo.
-`npm run quality` - to run the linter and the unit tests
209
212
-`npm run dev` - to run application in localhost:8080. This will watch the .js and .css files and rebuild on file changes
210
213
211
214
## End to End Tests
212
215
213
-
To run End to End tests in headless mode
216
+
To run End to End tests, start the dev server and follow the required steps below:
214
217
215
-
- add a new environment variable 'TEST_URL' and set it to 'http://localhost:8080/'
216
-
- add a new environment variable 'TEST_ENV' and set it to 'development' or 'production'
217
-
-`npm run test:e2e`
218
+
- To run in headless mode:
218
219
219
-
To run End to End tests in debug mode
220
+
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080/'
221
+
-`npm run test:e2e-headless`
220
222
221
-
- add a new environment variable 'TEST_URL' and set it to 'http://localhost:8080/'
222
-
- add a new environment variable 'TEST_ENV' and set it to 'development' or 'production'
223
-
-`npm run start`
224
-
- Click on 'Run all specs' in cypress window
223
+
- To run in debug mode:
224
+
- add a new environment variable `TEST_URL` and set it to 'http://localhost:8080/'
225
+
-`npm run e2e`
226
+
- Select 'E2E Testing' and choose the browser
227
+
- Click on the spec to run it's tests
225
228
226
-
**_Note:_** Currently, end to end tests are not working, as the flow requires Google login via prompt, which Cypress does not support. We are working to find some alternative solution for this.
229
+
**_Note:_** Currently, end to end tests are not supported for private Google Sheets, as it requires interacting with the Google One Tap popup.
227
230
228
231
### Don't want to install node? Run with one line docker
229
232
230
-
$ docker run -p 8080:8080 -v $PWD:/app -w /app -it node:10.15.3 /bin/sh -c 'npm install && npm run dev'
231
-
232
-
**_Note:_** If you are facing Node-sass compile error while running, please prefix the command `npm rebuild node-sass` before `npm run dev`. like this
233
-
234
-
```
235
-
npm install && npm rebuild node-sass && npm run dev
236
-
```
233
+
$ docker run -p 8080:8080 -v $PWD:/app -w /app -it node:18 /bin/sh -c 'npm install && npm run dev'
0 commit comments