flume-cloud-services / stor

Licence: MIT license
[DEPRECATED] STOR provides a JSON database with the power of HTTP requests 🚀

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
Dockerfile
14818 projects

Projects that are alternatives of or similar to stor

Sapphiredb
SapphireDb Server, a self-hosted, easy to use realtime database for Asp.Net Core and EF Core
Stars: ✭ 326 (+1711.11%)
Mutual labels:  self-hosted, firestore
friendica
Friendica Communications Platform
Stars: ✭ 1,048 (+5722.22%)
Mutual labels:  self-hosted
FireShort
A URL Shortener made using React.JS and Google Firestore
Stars: ✭ 29 (+61.11%)
Mutual labels:  firestore
teslamateapi
TeslaMateApi is a RESTful API to get data collected by self-hosted data logger TeslaMate in JSON
Stars: ✭ 47 (+161.11%)
Mutual labels:  self-hosted
Trippo-The Travel Guide
Trippo is your smart travel guide - it’s free and works offline, too! You can skim through tours, locations, POIs, city walks, articles and so on. This guide will save you from a serious headache!
Stars: ✭ 28 (+55.56%)
Mutual labels:  firestore
firestore-store
express-session store for Firebase Cloud Firestore
Stars: ✭ 44 (+144.44%)
Mutual labels:  firestore
ethibox
Open-source web apps hoster
Stars: ✭ 130 (+622.22%)
Mutual labels:  self-hosted
stuff
Crud operation with Firebase
Stars: ✭ 80 (+344.44%)
Mutual labels:  firestore
server
👨🏾‍🍳 Server for Ferdi that you can re-use to run your own
Stars: ✭ 26 (+44.44%)
Mutual labels:  self-hosted
firestore-react
[UNMAINTAINED] Firestore bindings for React components
Stars: ✭ 52 (+188.89%)
Mutual labels:  firestore
docker-ttrss
Tiny Tiny RSS feed reader as a Docker image.
Stars: ✭ 55 (+205.56%)
Mutual labels:  self-hosted
mCaptcha
A no-nonsense CAPTCHA system with seamless UX | Backend component
Stars: ✭ 473 (+2527.78%)
Mutual labels:  self-hosted
WorkGroup
Self-Hosted private Social Media-Intranet for Companies.
Stars: ✭ 21 (+16.67%)
Mutual labels:  self-hosted
app
Source code of intencje.pl website and mobile/desktop apps based on Angular, Firebase, and Capacitor.
Stars: ✭ 12 (-33.33%)
Mutual labels:  firestore
api
Mirror of vikunja from https://code.vikunja.io/api
Stars: ✭ 119 (+561.11%)
Mutual labels:  self-hosted
FireCat
Firestore real time pagination for Android
Stars: ✭ 15 (-16.67%)
Mutual labels:  firestore
react-native-firebase-firestore-crud-example
React Native Firebase Tutorial: Build CRUD Firestore App
Stars: ✭ 24 (+33.33%)
Mutual labels:  firestore
nextcloud-docker-compose
☁️ Spin up a Nextcloud instance with automatied backups and SSL certificate issuance.
Stars: ✭ 69 (+283.33%)
Mutual labels:  self-hosted
firebase-youtube-clone
技術書典5に出典した「Firebaseによるサーバーレスシングルページアプリケーション」のリポジトリです。
Stars: ✭ 16 (-11.11%)
Mutual labels:  firestore
delta
A modern file uploader + URL shortner written in node for your private cloud. low memory overhead + secure
Stars: ✭ 103 (+472.22%)
Mutual labels:  self-hosted

STOR provides a JSON database with the power of HTTP requests

1. Installation

You need to install NodeJS first

Just clone the repository :

git clone https://www.github.com/dimensi0n/stor.git

And run :

npm install

2. Configuration

Stor uses Environment variable :

STOR_MONGO_URI is the link to your MongoDB database
STOR_PORT is the port number you want the database to run on
STOR_PASSWORD is the token you will write for each request on the request header
STOR_CORS is the Cors config object : 1 if cors is enabled, by default is true; 0 if cors is disabled
STOR_CORS_WHITELIST (optionnal, the domain you want to be validate) Example: STOR_CORS_WHITELIST=www.mydomain.com,www.myotherdomain.com

Once you finished to complete this fields just transpile it :

npx tsc

3. Run it

If you want to run it just for testing you can launch it with this command :

npm start

4. Use it

Install the official js library :

npm install stor-js

Connect to your Stor database and select your table :

const stor = require("stor-js");

const Stor = new stor.Stor("link to your Stor database", "STOR_PASSWORD");

let users = Stor.Table("users");

Then init your Stor database :

users.Init([])
    .then(res => res.text())
    .then(body => console.log(body))

Select All :

users.SelectAll()
    .then(res => res.json())
    .then(body => console.log(body.content))

Create :

users.Create({name:'pierre'})
    .then(res => res.text())
    .then(body => console.log(body))

Get where :

users.Get('name', 'pierre')
    .then(res => res.text())
    .then(body => console.log(body))

Get user when name is 'pierre'

Update :

    users.Put('name', 'pierre', 'jean')
    .then(res => res.text())
    .then(body => console.log(body))

Update user when name is 'pierre' to 'jean'

Delete :

    users.Delete('name', 'jean')
    .then(res => res.text())
    .then(body => console.log(body))

Delete user when name is 'jean'

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].