Options
Use an API route
You could choose to use an API endpoint to handle a bulkPOST
request of data.
I have included and example endpoint for bulk loading a CSV file in the repository.
You will have to make adjustments to handle your data.
Load data in the seed.ts
Another option is to load your dataset in theseed.ts
file.
You’ll notice there is a faker.js
implementation that loads 500 dummy records into the database.
You could replcace this with your real dataset, either loaded from a CSV file or a JSON array of objects.
Manually add new records in Admin Panel
If you dont have any data to start with you can use the admin panel avaiable when you login withadmin@admin.com
You can adjust this form to suit your data and manually add new records as you need them!