All Projects → maple3142 → apps-script-db

maple3142 / apps-script-db

Licence: MIT License
A key-value database by Google Apps Script

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to apps-script-db

elcalc
➗ Cross-Platform calculator built with Electron!
Stars: ✭ 88 (+340%)
Mutual labels:  simple
gmail-gitlab-filtering
Google Apps Script for Gmail to filter and sort email from GitLab
Stars: ✭ 84 (+320%)
Mutual labels:  apps-script
flip-jump
The simplest programming language - Flip a bit, then Jump
Stars: ✭ 18 (-10%)
Mutual labels:  simple
perf
PERF is an Exhaustive Repeat Finder
Stars: ✭ 26 (+30%)
Mutual labels:  simple
hascal
Hascal is a general purpose and open source programming language designed to build optimal, maintainable, reliable and efficient software.
Stars: ✭ 56 (+180%)
Mutual labels:  simple
simpleRPC
Simple RPC implementation for Arduino.
Stars: ✭ 28 (+40%)
Mutual labels:  simple
Creamy
A simple CMS in the style of Perch.
Stars: ✭ 32 (+60%)
Mutual labels:  simple
printrboardmodernmarlin
Printrboard and Modern Marlin
Stars: ✭ 55 (+175%)
Mutual labels:  simple
Simple-YouTube-Downloader
YouTube download client with focus on simplicity
Stars: ✭ 31 (+55%)
Mutual labels:  simple
Chat-Server
Simple chatroom in C
Stars: ✭ 74 (+270%)
Mutual labels:  simple
google-apps-script
A collection of Google Apps Script that I've worked on over time.
Stars: ✭ 79 (+295%)
Mutual labels:  apps-script
django-menu-generator
A straightforward menu generator for Django
Stars: ✭ 24 (+20%)
Mutual labels:  simple
contentfully
A simple but performant REST client for Contentful.
Stars: ✭ 13 (-35%)
Mutual labels:  simple
telegram client
library for help you make userbot or bot telegram and support tdlib telegram database and only support nodejs dart and google-apps-script
Stars: ✭ 38 (+90%)
Mutual labels:  apps-script
simple-image-classifier
Simple image classifier microservice using tensorflow and sanic
Stars: ✭ 22 (+10%)
Mutual labels:  simple
untheme
A blank WordPress theme for developers.
Stars: ✭ 82 (+310%)
Mutual labels:  simple
Ugly-Distributed-Crawler
基于Redis实现的简单到爆的分布式爬虫
Stars: ✭ 45 (+125%)
Mutual labels:  simple
sol
Lightweight MQTT broker, written from scratch. IO is handled by a super simple event loop based upon the most common IO multiplexing implementations.
Stars: ✭ 72 (+260%)
Mutual labels:  simple
pasthis
Simple stupid pastebin
Stars: ✭ 36 (+80%)
Mutual labels:  simple
SSTMCSPGAAS
Stupidly Simple Tiny Minimal Coming Soon Page Generator As A Service
Stars: ✭ 23 (+15%)
Mutual labels:  simple

Apps Script DB

FOSSA Status

A module to provide a simple key-value based database by Google Apps Script

Get Database URL

  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 want
  3. Click "Publish" -> "Deploy as web app..."
  4. Set "Who has access to the app:" to "Anyone, even anonymous"
  5. Click "Deploy" and copy the URL

Usage

Node

npm i --save apps-script-db

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}
})()

Browser

<script src="https://unpkg.com/apps-script-db"></script>
<script>
const db = new ADB(YOUR_DATABASE_URL)
</script>

UI Database Editor

URL: https://maple3142.github.io/apps-script-db/

The web app is on branch webui, based on Vue.

API

db.set(key: string, value: string)

Set the value of key to value

db.get(key: string)

Get the value of key

if key === '*', it will return an object with all values

db.del(key: string)

Delete the value of key

if key === '*', it will delete everything

License

FOSSA Status

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].