Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lkatartn/fill-fauna
Fill your faunaDB collection with data from JSON file
https://github.com/lkatartn/fill-fauna
database-administration database-as-a-service database-management faunadb
Last synced: about 1 month ago
JSON representation
Fill your faunaDB collection with data from JSON file
- Host: GitHub
- URL: https://github.com/lkatartn/fill-fauna
- Owner: lkatartn
- Created: 2020-03-24T19:13:59.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T10:34:27.000Z (over 1 year ago)
- Last Synced: 2024-07-05T05:06:31.998Z (2 months ago)
- Topics: database-administration, database-as-a-service, database-management, faunadb
- Language: TypeScript
- Homepage: https://fill-fauna.now.sh/
- Size: 1.51 MB
- Stars: 9
- Watchers: 3
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-fauna - Fill Fauna - Fill your Fauna collection with data from JSON file (Tools / Other tools)
README
# Upload data from your json file to FaunaDB
This is a simple next.js application, that allows you to upload data from .json file to FaunaDB collection.
## How to use this tool
There are some prerequisites:
- Database and collection should be created in FaunaDB. [How to create db and collection](https://docs.fauna.com/fauna/current/start/cloud#create-db)
- 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 namesHow to use:
1. Create key, with access to proper database. [How to create access key](https://docs.fauna.com/fauna/current/start/vs_code#key)
2. Open https://fill-fauna.now.sh
3. Select or drag'n'drop .json or .csv file with data from your computer
4. Enter access key. It is used in requests only from your browser page
5. Enter collection id
6. Press `Fill your collection` button## Development
Run the development server:
```bash
npm run dev
```Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.