Giter Club home page Giter Club logo

gojson's Introduction

goJSON

Run on Repl.it

A simple and lightning fast database written in Golang!

This api is meant for small projects that just need a fast database, and dont want to mess around with tokens and setting one up yourself! Just copy the link, and use the API methods to store and retrieve any JSON you need!

Open Source and accepting contributors!

API

UPDATE: To check the magnitude of requests, I made an open source log for the API. Check at https://db.neelr.dev/logs. It only tracks the number of requests, not IP's or anything else.

Use the UI to take a look at your token's database: https://dash.db.neelr.dev

Your very own database API endpoint is /api/:key

Add/Update Data

POST or PUT /api/f0e4408dc81b90365ed5b11112ff2575!

Also you can update inner objects using keys!

ex. POST /api/f0e4408dc81b90365ed5b11112ff2575/hello/hi

{
	"go": true
}

will update it to create a JSON

{
	"hello": {
		"hi": {
			"go": true
		}
	}
}

IMPORTANT UPDATE:
Take note that PUT method only updates, and does not delete any keys in the database when writing, while POST overwrites any existing keys in the same directory. For the example above both work, but instead, if there were other values at /hello/hi POST would overwite all of them with go:true

View Data

GET /api/f0e4408dc81b90365ed5b11112ff2575 or navigate through the keys with /api/f0e4408dc81b90365ed5b11112ff2575/hello would return

{
	"hi": {
		"go": true
	}
}

Delete Data

DELETE /api/f0e4408dc81b90365ed5b11112ff2575 and you can delete using the same key navigation given above!

Building and Running

  1. Install Golang on your computer

  2. Run git clone https://github.com/neelr/gojson

  3. Create an empty database folder

  4. Go into the directory and run go run .!

Contribution

Any type of feedback, pull request or issue is welcome.

MIT LICENSE

gojson's People

Contributors

neelr avatar aboutdavid avatar

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.