https://github.com/dansteren/ferodb
A front-end read-only database
https://github.com/dansteren/ferodb
database google-sheets
Last synced: 3 months ago
JSON representation
A front-end read-only database
- Host: GitHub
- URL: https://github.com/dansteren/ferodb
- Owner: dansteren
- Created: 2018-11-10T08:53:48.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2021-01-29T07:30:42.000Z (over 5 years ago)
- Last Synced: 2025-08-03T01:32:34.651Z (11 months ago)
- Topics: database, google-sheets
- Language: JavaScript
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# feroDB
A front-end read-only database
## Motivation
There are times in a static website when you want your data to be customizable
by a non technical person, but don't want the added cost and infrastruture of a
backend. FeroDB uses spreadsheets on Google Drive as a database. This provides
easy manipulation of your data without a backend.
## Installation
Add the following to the "dependencies" section of your package.json:
```
"ferodb": "dansteren/ferodb"
```
and run `npm install` or `yarn install`.
## Usage
Create as many Google Sheets as you need tables. For each sheet, go to File >
Publish to the web... and click "Publish". Close out of that dialog box and
click on the big "Share" button in the top right corner. Call Fero and give it
an object with the table name as a key and the share url as the value:
```
const database = await Fero({
table1: 'https://the_share_link_url_of_a_google_spreadsheet',
table2: 'https://another_link_url_of_a_google_spreadsheet',
})
console.log(`There are ${database.table1.length} items in table 1`)
console.log(`There are ${database.table2.length} items in table 2`)
```