prasmussen / glot.io

DEPRECATED: Pastebin clone built with AngularJS and CouchDB
http://glot.io
MIT License
19 stars 5 forks source link

Roadmap #3

Open tripflex opened 11 years ago

tripflex commented 11 years ago

Hey guys, was looking for something to replace the self-hosted hastebin i'm using right now and I think this kills two birds with one stone!

Just wondering if you have a roadmap of features to be added, or functionality. Hope to contribute to this project soon!

One thing that would be a must for me would be some type of API or way to post from command line ... if you haven't already started working on something like that let me know and I will start on that first.

Thanks!!

prasmussen commented 11 years ago

Hello -- there is no roadmap at the moment, so ideas are welcome. A CLI tool to interact with glot.io would be cool. There is kind of an API already, its not pretty but it's what there is for now.

If I get the time in the next couple of days, I will write an 'about page' or something explaining how the site works and how to interact with it. In the meantime, here is an example of how to post a snippet using curl:

$ curl -X POST -d '{"code": "print \"foo\"", "language": "python", "name": "foo"}' http://glot.io/api/_design/app/_update/snippet
{"_id":"647d558b2527fb4330283bb86aa07901"}

The response is the id of the snippet, which in this case can be accessed at http://glot.io/python/647d558b2527fb4330283bb86aa07901

Note that snippets that are posted without authentication are read-only.

tripflex commented 11 years ago

Excellent, that means it's pretty much already implemented so not much work to do except maybe writing a script to automatically push to server.

I wrote one for hastebin awhile ago in Python ( https://github.com/tripflex/hastebin-python-client ), i'm sure something for glot should be pretty straight forward, i'll see what i can come up with.

Thanks for the quick reply as well, look forward to working on this project! Let me know if there's anything specific I can help out with!