Skip to content

Sample data a developer can use to assist them in developing features on MuckRock Requests and FOIA Machine

License

Notifications You must be signed in to change notification settings

MuckRock/dev_data

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

  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.

About

Sample data a developer can use to assist them in developing features on MuckRock Requests and FOIA Machine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published