TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: EasyDB – A One-Click Ephemeral Database

158 pointsby justjakeover 5 years ago

18 comments

tlbover 5 years ago
<p><pre><code> db.Put(&#x27;myKey&#x27;, {some: &#x27;data&#x27;}, (value, err) =&gt; {}) </code></pre> It annoys me that it reverses the standard (err, value) callback convention that everyone else uses.<p>An advantage of the standard is that you might have 0, or 2 or more value arguments to the callback. So you can return (err) or (err, value) or (err, value, optionalExtraValue) and it&#x27;s fairly consistent.
评论 #21588630 未加载
评论 #21589343 未加载
orfover 5 years ago
Really interesting project. Couple of things:<p>1. Your Python library (easydbio) doesn&#x27;t have the correct requirements listed. It depends on &#x27;requests&#x27; being installed, add this to the setup.py install_requires call.<p>2. Make the DB class accept arguments instead of a dictionary. Just do `DB(database, token)`<p>3. The API is just a really simple CRUD to a single endpoint, why not include curl&#x2F;httpie samples in the homepage?<p>4. The repository link for the Python SDK 404&#x27;s (or is private). People often look at the repositories for dependencies they choose to install, not having it available is not a good signal.
评论 #21590015 未加载
anonytraryover 5 years ago
This site is an embodiment of the idea that &quot;good design is when there is nothing left to take away&quot;. I was able to very quickly grok what this was, thanks to the simple UX flow of creating a db and then being told how to go play with it.
评论 #21593080 未加载
jjiceover 5 years ago
This is great! At hackathons in the past, I usually use SQLite for development, and once everything is set, switch over to a more traditional RDBMS. This is a great site that is definitely going in the bookmarks.<p>Out of curiosity, can you elaborate on the the technologies you used for this (lang, frameworks, hosting services)? I&#x27;ve been trying to learn design patterns for larger software like this, so your insight would be great.
评论 #21588928 未加载
评论 #21589999 未加载
northstar702over 5 years ago
This is neat. What&#x27;s the actual database behind this? What kind of data model&#x2F;consistency&#x2F;isolation does it offer?
评论 #21589410 未加载
ryantuckover 5 years ago
This is really elegant.<p>One note is that the python repl.it fails on an import error upon just hitting &#x27;run&#x27;, but it does work locally as expected.<p>Edit: Was able to get it working in repl.it by updating pyproject.toml like so:<p><pre><code> [tool.poetry.dependencies] python = &quot;^3.7&quot; easydbio = &quot;*&quot;</code></pre>
评论 #21589686 未加载
pbreitover 5 years ago
I see the JavaScript has all the async and callbacks while the Python is simple procedural. What are the benefits of the JavaScript version? It&#x27;s definitely harder to grok for this newbie.<p>I also wonder what a plain ole RESTful API would look like. Why does everything need an SDK&#x2F;library?<p>Ex:<p><pre><code> import requests &#x2F;&#x2F;wish this was built in token = &#x27;07a3e79a-c34c-4603-9a87-3fa47678d37c&#x27; db = &#x27;51e71cb3-a40d-46bc-af3a-7bb77fde04a9&#x27; key = &#x27;myKey&#x27; r = requests.get(f&#x27;https:&#x2F;&#x2F;easydb.io&#x2F;{db}&#x2F;{key}&#x27;, auth=(token, &#x27;&#x27;))</code></pre>
评论 #21592174 未加载
nu11p0interover 5 years ago
The tool looks great, seems very easy to use. The UI&#x2F;UX side of it is on point. The missing information about what the product is makes me hesitant to use it.<p>I looked through the pages... Tried a few times to find out what happens if I decide to use your tool after the 24H. I looked for a pricing page and failed. Makes sense if this is just your POC&#x2F;demo.<p>So yeah, the ambiguity of all this makes it highly unattractive to even evaluate. It doesn&#x27;t offer any value that a terraform RDS script or even docker-compose script that renders a template to give you the copypasta database init blocks.
评论 #21589667 未加载
erikigover 5 years ago
Quick Question - Are you creating an instance of the database when a user clicks &quot;Create a Database&quot; or when they first connect to it?
评论 #21589187 未加载
vertocover 5 years ago
Awesome, this will be great for hackathons :D
didgeoridooover 5 years ago
Looks great! One thing isn’t totally clear to me: Does the database itself get removed after 24 hours, or just the data?
评论 #21589195 未加载
jedieastonover 5 years ago
Is this open-source?
评论 #21589828 未加载
breckover 5 years ago
I love this. I would also love an EasyVM.
评论 #21589703 未加载
yolo42over 5 years ago
Any plans to add a Go library for this?
评论 #21592153 未加载
评论 #21626581 未加载
wheelerwjover 5 years ago
this seems cool, but... why?
评论 #21592157 未加载
i_am_staticover 5 years ago
is it possible to clear DB instead of deleting DB after 24 or 72 hours?
评论 #21598156 未加载
keyleover 5 years ago
what&#x27;s running behind this? I mean the actual DB. Couch?
评论 #21592161 未加载
Sophistifunkover 5 years ago
That&#x27;s the worst splash screen I&#x27;ve ever seen.
评论 #21591751 未加载
评论 #21590852 未加载