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
+28-5Lines changed: 28 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,13 +40,13 @@ You should now have the following directory structure:
40
40
```
41
41
42
42
and you should be in the `driver` directory.
43
-
You can now execute `make` commands.
43
+
You can now execute `make` commands (but only from the `driver` directory).
44
44
45
45
```sh
46
46
# Create all docker containers: db, web, redis, and python
47
47
$ [sudo] make all
48
48
49
-
# Run tests
49
+
# Run python tests
50
50
$ [sudo] make test
51
51
52
52
# To drop into debugger on error
@@ -57,7 +57,7 @@ $ [sudo] make test pdb=1
57
57
$ [sudo] make test test=repos/delphi/delphi-epidata/integrations/acquisition
58
58
$ [sudo] make test test=repos/delphi/delphi-epidata/integrations/acquisition/covid_hosp/facility/test_scenarios.py
59
59
60
-
#To run R tests
60
+
#Run R tests
61
61
$ [sudo] make r-test
62
62
```
63
63
@@ -78,6 +78,7 @@ From the `driver` directory, run
78
78
```sh
79
79
# If containers are not already started
80
80
$ [sudo] make all
81
+
81
82
# Starts a bash session inside the `delphi_web_python` container
82
83
$ [sudo] make bash
83
84
```
@@ -97,13 +98,35 @@ $ python -m delphi.epidata.acquisition.flusurv.flusurv_update all
97
98
98
99
You may need to add '$(M1)' flag to subcommands if using a new M\* chip Mac. The '$(M1)' flag is added to commands within the [Makefile](https://github.com/cmu-delphi/delphi-epidata/blob/cae43f8/dev/local/Makefile), so take a look there for guidance.
99
100
100
-
## Other useful commands and information
101
+
## Running local epidata API
102
+
103
+
From the `driver` directory, run
101
104
102
105
```sh
103
106
# Starts a MySQL prompt that can be used to query the local database.
104
107
# This connection can be kept open while adding data to the database.
105
108
$ [sudo] make sql
106
-
# Cleans up the docker environment
109
+
```
110
+
111
+
If the container was successfully started, you should see a prompt that looks like `root@containerhash:/usr/src/app#`.
112
+
113
+
From the container, open a Python session with `python` and then run
114
+
115
+
```python
116
+
from delphi.epidata.client.delphi_epidata import Epidata
0 commit comments