by alin23 · 3y ago · 0 comments
It’s an app for finding parties and festivals in Romania, and the sheets choice makes it super easy for my brother and his friends to add parties to the app.
I thought about adding a “real” database and tried some apps/frontends for them, but nothing made it easy enough to update and insert rows for non technical people.
I figured I could just download and cache the Sheets CSV, and use that for the database.
PS: the app is the one I had trouble getting published because the App Store reviewers deemed it“too simple”: https://notes.alinpanaitiu.com/Dealing-with-App-Store-reject...
It makes creating a small web form to feed your database as easy as
SELECT 'form' AS component;
SELECT name, label, type FROM form_fields;
INSERT INTO parties(name, date) VALUES(:name, :date);
And creating an api on top of that db as simple as: SELECT 'json' AS component,
(SELECT JSON_GROUP_ARRAY(JSON_OBJECT('name', name, 'date', date)) FROM parties) AS contents;
[1] https://sql.ophir.dev/
[2] https://github.com/lovasoa/SQLPageAlthough what sheets excels at is batch editing and collaboration, which is really hard to get in an SQL frontend. My brother usually runs a Raycast workflow I wrote for him to extract a small number of party data as TSV which gets copied in clipboard. Then in sheets he can just paste that to get full rows and columns populated.
After that he and his friends start proof reading and cross referencing social media data for each row, and Sheets makes this super easy as they can see each row highlighted with each user’s color so they don’t step on each other’s toes.
Your solution is still very good for other use cases and I think I already have one in mind. My father always wanted to maintain a list of up-to-date prices for the vegetables that sell in my hometown’s large wholesale market.
well played
The sql source code for it is here: https://github.com/lovasoa/SQLpage/tree/main/examples/offici...
The site also links to this little collaborative game written in SQLPage: https://conundrum.ophir.dev/
The github README has code snippets and associated screenshots: https://github.com/lovasoa/SQLpage#examples
There is also an official repl.it that you can fork to quickly try it online without having to download anything: https://replit.com/@pimaj62145/SQLPage
And SQLPage cloud is coming: https://sql.ophir.dev/your-first-sql-website/hosted.sql
My recommendation would be to have a clear "see a demo" button, which leads to a website that showcases the most common elements I might want to have on such a page (a form, some graphs, etc), maybe with source code close by.
UPDATE parties SET name=:name, date=:date WHERE id=:id;Btw how would you compare this to https://datasette.io/ which is the first thing that came to mind? Is yours a bit more developer oriented?
I also write articles in Sketch, because the app is heavy on illustrations. Using sketch allows me to draw the images directly while writing the articles. It is then sliced and exported into the app through a custom plugin.
Realtors and doctors, mostly.