coso
An open-source HTTP back-end with realtime subscriptions using Google Cloud Storage as a key-value store. Explore the docs »
Table of Contents
About The Project
coso
is an experimental open-source HTTP back-end using Google Cloud Storage
as a key-value store. It is designed to be a simple and fast way to use Google
Cloud Storage as a key-value store with a HTTP interface. Real-time
subscriptions are also possible via Server Sent Events.
Building and running coso
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
git clone https://github.com/hood/coso
cd coso
go build
./coso
coso
will look for an .env
file in its own folder, and will use the following environment variables:
BUCKET_NAME
– the name of the Google Cloud Storage bucket to use (will throw if not set)PORT_NUMBER
– the port to listen on (default:1337
)
Usage
Once spun, the webserver can be hit at the following HTTP endpoints:
/get
Content-Type
:application/json
Body
:{"key": "some-key"}
/set
Content-Type
:application/json
Body
:{"key": "some-key", "value": "some-value"}
/list
Content-Type
:application/json
Body
:{"prefix": "some-prefix", "flat": true}
(flat
is optional, and defaults tofalse
)
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag “enhancement”. Don’t forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/amazing-feature
) - Commit your Changes (
git commit -m 'Add some amazing feature'
) - Push to the Branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
Distributed under the GPL v3.0 License. See LICENSE.txt
for more information.
Contact
Author – @0xCAP
Project Link: https://github.com/hood/coso