Skip to content

Commit

Permalink
Merge pull request #3535 from hitenvidhani/update_docs
Browse files Browse the repository at this point in the history
Update docs to add instructions for loading data from playground
  • Loading branch information
seancolsen authored Apr 29, 2024
2 parents 5cbd321 + 97179d2 commit c454c1e
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,26 @@ Before getting started with your code changes, read our [Contributor guide](./CO
## Loading sample data
For sample table data, you can create a new table in the UI using the `patents.csv` file found in `/mathesar/tests/data`.
- Using a CSV File (limited visibility of features):
For sample table data, you can create a new table in the UI using the `patents.csv` file found in `/mathesar/tests/data`.
- Using Mathesar Data Playground (recommended):
1. Clone the `mathesar-data-playground` repo:
```
git clone https://github.com/mathesar-foundation/mathesar-data-playground.git
```
2. Load the data from sql by running:
```
sudo docker exec -i mathesar_dev_db bash -c 'psql -U mathesar' < /path/to/your/cloned/repo/mathesar-data-playground/realistic_library_simulation/simulation_runs/simulation_run_20230106_00.sql
```
```
sudo docker exec -i mathesar_dev_db bash -c 'psql -U mathesar' < /path/to/your/cloned/repo/mathesar-data-playground/realistic_library_simulation/simulation_runs/simulation_run_20230106_00_checkouts.sql
```
3. [Sync]( https://docs.mathesar.org/user-guide/syncing-db/) these changes from the UI.
<!-- TODO add more content about sample data -->
Expand Down

0 comments on commit c454c1e

Please sign in to comment.