Skip to content

Latest commit

 

History

History
12 lines (6 loc) · 797 Bytes

File metadata and controls

12 lines (6 loc) · 797 Bytes
  1. Create a directory named data in the root directory of the folder muckrock that contains the source code for MuckRock Requests.

  2. Copy the generated files into the base directory of the MuckRock Requests environment. cp <export script path>/*.{csv,sql} <requests path>/data/

  3. Run inv dbshell to launch the PostgreSQL command line for the development environment.

  4. Run \cd data to change the working directory to where you copied the files.

  5. run \i muckrock.sql to 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.