Giter VIP home page Giter VIP logo

simpledb's Introduction

SimpleDB

Simplify your way to store simple data.

Getting started

  • Fork the project
  • Clone to your machine
git clone https://github.com/<githubUsername>/simpleDB.git

Then, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

API Reference

Base URL: https://simpledb.vercel.app/api

Add new property

GET /add/{propertyName}

Add new data

GET /add/{propertyName}/{data}
note Property must exist first

Get all stored property

GET /select/properties

Get all data based on property

GET /select/{propertyName}

Get specific data

GET /select/{propertyName}/{data}

Update data

GET /update/{propertyName}/{oldData}/{newData}

Delete data

GET /delete/{propertyName}/{data}

Credits

Copyright © 2022 Tulus Ibrahim

simpledb's People

Contributors

tulusibrahim avatar

Stargazers

Jonatan Hernández avatar

Watchers

 avatar

simpledb's Issues

Security question/suggestion

This is awesome concept IMO, however you have everyone's data exposed by having supabase project ref and apikeys available here. As well as schema names, so with that info anyone is able to get all data stored. For example, here are id's of all id's of entries that are currently stored in simpleDB:

[ { "id": "58089ea6-9ba9-4168-beaf-763760f9d01a" }, { "id": "d44a9a26-a943-4336-aac3-041020d360fa" }, { "id": "3de776c7-ad74-43f8-a888-03857dcf4fb2" }, { "id": "1f57d057-857f-4440-a738-88337d767e05" }, { "id": "32dfe57b-5392-4cfc-bcd3-ce7c929835c8" }, { "id": "0205e51c-b152-4173-904b-69db4009b334" }, { "id": "ff7a8a29-7278-46ff-871e-55ea87173ca4" }, { "id": "030738b1-3b18-4f34-bbe5-10ab13311a47" }, { "id": "f27711b9-c861-438b-a4b8-79a0ac75e22c" } ]

I didn't test other methods, but I think they would be fair game as well.

First thing that comes to mind is for you to use different supabase project with keys/project ref names that are not in public repo. And perhaps using non 'public' schema.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.