The next step in my project was to test out being able store and display the rates in a database. I decided to use nodejs and supabase for this. Everything worked beautifully. Only hickup was the following error due to my package.json not being correct.
SyntaxError: Cannot use import statement outside a module
Added this to package.json
"type": "module"
This works beautifully. Right now I am just testing fragments of what could be part of a bigger system to see what is possible and what works and how easy to code on a mobile. There is no fully functioning integrated end to end system just yet.
This is also what I tested. A serverless append-only database using GitHub + Actions + Pages. That’s basically a lightweight backend system. This was the ChatGPT prompt I used.
Guide me through each step. This is what I want. A manually run github actions that adds to docs/data.json with the current date and time. docs/index.html displays all the entries in data.json.
Make sure and give the action permission to write to repo or else you will get an error like this - remote: Permission to hassan-theitguy/update-data-test.git denied to github-actions[bot].
To avoid caching issues I tried the following in my javascript - const res = await fetch("data.json?v=" + Date.now());
I also asked ChatGPT the following - I have been doing some hobby coding. Things I have tested so far. Scraping a website for exchange rates and serving the data via my api. Emailing and sending the data via email and sms. Storing data in supabase and displaying it in a webpage. What else can I test out?
And the response - You’ve already covered a really solid “full loop” stack: data ingestion (scraping), processing, storage (Supabase), delivery (email/SMS), and presentation (web app). The natural next step is to start adding complexity in systems, not just more features.




Comments