3 ms·
Yes, yes, all these one-liner http server are great… but you're missing the point Knod allows you to POST JSON data to a URL which it stores in a file so you c
by hopeless 12y ago
Yes, yes, all these one-liner http server are great… but you're missing the point
Knod allows you to POST JSON data to a URL which it stores in a file so you can GET the same data back. If you're prototyping a one page JS app in, say, Ember this means that you don't need work on the backed logic, server or database. It's a pretty smart idea!
I wonder what it does on GET /items though? Hopefully it concatenates all file contents into a JSON array
- ImJasonH 12y agoYeah, a fake "sticky" backend can be really useful in prototyping a frontend. I built a similar thing to help with that, built on App Engine (which I usually just run locally): https://github.com/ImJasonH/simply-put https://github.com/ImJasonH/simply-put It supports GET/POST/DELETE and simple queries. I ended up having more fun writing the devel backend than whatever it was I was writing :)
- TinyBig 12y agoConcatenating the contents into a JSON array is an excellent idea! I'll get to work on that.
- bruce_one 12y agoNot quite the same, but [Interfake](https://github.com/basicallydan/interfake https://github.com/basicallydan/interfake) is a pretty cool tool for creating mock APIs :-) Would be even better with a way to do something like this though :-)