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
…235)
Closes#220.
What does this PR do / solve?
-----------------------------
When developing and/or testing features (e.g. the "load more" button, see #221) in a local environment, it can be handy to have some posts in the local database.
Overview of changes
-------------------
Introduce `./scripts/import-from-prod.js` which loads [adrien's profile and posts](https://openwhyd.org/adrien) to the local/testing database.
How to test this PR?
--------------------
Run this after starting a local database server (e.g. with `$ docker-compose up`):
```sh
$ node scripts/import-from-prod.js
```
=> http://localhost:8080/all should display several pages of tracks imported from https://openwhyd.org/adrien.
That would be useful to setup realistic data while testing openwhyd locally, for troubleshooting and feature development.
E.g. to test the rendering and behavior of the "Load more" button, from the
/all
page. (cf #221)Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.
The text was updated successfully, but these errors were encountered: