-
Create a directory named
datain the root directory of the foldermuckrockthat contains the source code for MuckRock Requests. -
Copy the generated files into the base directory of the MuckRock Requests environment.
cp <export script path>/*.{csv,sql} <requests path>/data/ -
Run
inv dbshellto launch the PostgreSQL command line for the development environment. -
Run
\cd datato change the working directory to where you copied the files. -
run
\i muckrock.sqlto import the data.
After bringing up the MuckRock requests docker image, you should be able to confirm that sample agency and jurisdiction data was imported by going to https://dev.muckrock.com/api_v2/jurisdictions/ and https://dev.muckrock.com/api_v2/agencies/ to confirm that data imported successfully.