This is a simple next.js application, that allows you to upload data from .json file to FaunaDB collection.
There are some prerequisites:
- Database and collection should be created in FaunaDB. How to create db and collection
- If you use JSON file. It should contain an array of objects. These objects will be added as documents in collection.
- If you use CSV file. First row should contain column names
How to use:
- Create key, with access to proper database. How to create access key
- Open https://fill-fauna.now.sh
- Select or drag'n'drop .json or .csv file with data from your computer
- Enter access key. It is used in requests only from your browser page
- Enter collection id
- Press
Fill your collection
button
Run the development server:
npm run dev
Open http://localhost:3000 with your browser to see the result.