> A module to prodive a simple key-value based database by [Google Apps Script](https://developers.google.com/apps-script/)
npm install apps-script-db> A module to prodive a simple key-value based database by Google Apps Script
1. Go to https://script.google.com/home
2. Create a script with content of db.js file and save with any project name you wants
3. Click "Publish" -> "Deploy as web app..."
4. Set "Who has access to the app:" to "Anyone, even anonymous"
5. Click "Deploy" and get the url
> npm i --save apps-script-db
``javascript
const ADB = require('apps-script-db')
const fetch = require('node-fetch')
const db = new ADB(YOUR_DATABASE_URL, fetch)
(async ()=>{
await db.set('key', {a: 5})
await db.get('key') //{a: 5}
})()
`
`html`
Url: https://maple3142.github.io/apps-script-db/
The web app is on branch webui, based on Vue.
Set the value of key to value
Get the value of key
> if key==='*', it will return an object of all values
Delete the value of key
> if key==='*'`, it will delete every things