Live data from Hacker News

Show HN: Caffeine – Minimum viable back end for prototyping

github.com

1–10 of 83 posts

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#2
A very basic REST service for JSON data - enough for prototyping and MVPs!

Features:

    no need to set up a database, all data is managed automagically*
    REST paradigm CRUD for multiple entities/namespaces
    schema validation
    search using jq like syntax 
    CORS enabled
    easy to deploy as container

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#7
post #6

Feature request: supply .json file via command line to pre-load data into the in-memory database. Taking it even further; how about persisting the data in the file? Sometimes your prototype will need some pre-added data so I think this might be useful.

My first thought too, but I guess it's also very easy to hand-roll an init_data.sh script with a bunch of POST curls to populate the DB.

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#8
post #6

Feature request: supply .json file via command line to pre-load data into the in-memory database. Taking it even further; how about persisting the data in the file? Sometimes your prototype will need some pre-added data so I think this might be useful.

Can probably do that with some `jq` and CURL magic already!

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#9
post #6

Feature request: supply .json file via command line to pre-load data into the in-memory database. Taking it even further; how about persisting the data in the file? Sometimes your prototype will need some pre-added data so I think this might be useful.

currently there are two implementation for the database "behind": in memory or with postgres, both with zero config (except for starting an instance of postgres, in the second case!). it can be easily extended to use files as persistence, good idea :)

regarding the pre-population, you can just make a quick script with curl that will add some data after you run the service. any thought?

Re: Show HN: Caffeine – Minimum viable back end for prototyping

#10
post #7
post #6

Feature request: supply .json file via command line to pre-load data into the in-memory database. Taking it even further; how about persisting the data in the file? Sometimes your prototype will need some pre-added data so I think this might be useful.

My first thought too, but I guess it's also very easy to hand-roll an init_data.sh script with a bunch of POST curls to populate the DB.

exactly!
Post reply on HN