@cfpb/ccdb5-ui 2.4.6 → 2.4.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -11
- package/dist/ccdb5.min.js +1 -1
- package/dist/ccdb5.min.js.map +1 -1
- package/package.json +5 -5
- package/dist/.DS_Store +0 -0
package/README.md
CHANGED
|
@@ -52,10 +52,15 @@ This application depends on the [Public Complaints API](https://github.com/cfpb/
|
|
|
52
52
|
to be available.
|
|
53
53
|
|
|
54
54
|
For local development, you will need to the following:
|
|
55
|
-
|
|
56
|
-
* [
|
|
57
|
-
*
|
|
58
|
-
|
|
55
|
+
|
|
56
|
+
* [Run consumerfinance.gov locally (which includes the API)](https://github.com/cfpb/consumerfinance.gov#quickstart).
|
|
57
|
+
* [Fill the local Elasticsearch with data](https://github.com/cfpb/ccdb-data-pipeline/blob/main/INSTALL.md).
|
|
58
|
+
|
|
59
|
+
***Note:*** The Public Complaints API runs as part of consumerfinance.gov, but you can run the API as an independent app:
|
|
60
|
+
|
|
61
|
+
* Ensure the consumerfinance.gov python container is stopped with `docker-compose stop python`.
|
|
62
|
+
* [Install the API](https://github.com/cfpb/ccdb5-api#setup--running) and run it with `python manage.py runserver`.
|
|
63
|
+
* Edit [`env.js`](https://github.com/cfpb/ccdb5-ui/blob/main/config/env.js#L104) to point `ccdbApiUrl.dev` to the locally running API (likely at `http://localhost:8000/`).
|
|
59
64
|
|
|
60
65
|
###### Code-Build cycle
|
|
61
66
|
|
|
@@ -83,13 +88,6 @@ yarn run test
|
|
|
83
88
|
|
|
84
89
|
Enter `Control-C` to exit interactive watch mode
|
|
85
90
|
|
|
86
|
-
To run the Python unit tests, first install [Tox](https://tox.readthedocs.io/en/latest/),
|
|
87
|
-
and then run:
|
|
88
|
-
|
|
89
|
-
```bash
|
|
90
|
-
tox
|
|
91
|
-
```
|
|
92
|
-
|
|
93
91
|
## Cypress integration tests
|
|
94
92
|
|
|
95
93
|
Our browser-based tests check base-line user operations for [consumer complaint search](https://www.consumerfinance.gov/data-research/consumer-complaints/search/). The tests are run against JSON fixtures from the [ccdb5-api](https://github.com/cfpb/ccdb5-api).
|