Priming the Database with Example Data
First off, we’re working out of the code/debugging-components folder in this chapter rather than our usual code/video-tutorials chapter, so make sure to switch there.
The story we’re telling in this chapter will make a whole lot more sense if you prime your database with some good test data. It’s worthwhile to completely destroy and rebuild your database before going any further. If you’re using the Docker setup in this book, running docker-compose rm -sf followed by docker-compose up in code/debugging-components will do just that. If you’re not using the Docker setup, well, then do whatever you do to rebuild it.
Once you’ve done that, also from within code/debugging-components, run npm run populate. That ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access