This repo assumes two things:
- that you are trying to bulk import data to Directus that includes an image associated with a collection item.
- You have formatted your JSON file to match the collection you are trying to import to in Directus.
- Run
npm i
oryarn
in terminal - Export your data to
./data/data-sample.json
making sure the object looks like the existing - Copy the
.env.sample
file to.env
and fill in using your Directus credentials - Run
node index
to run the import