italicninja

Blog Submission Form

Blog Submission Form

Wow, kind of wild — I made a bunch of changes before 7:00 AM. Nice.

So, this post (and honestly, the last couple of days since my last post) have been focused on getting a database backend set up for the blog posts. Hopefully, everything’s working now!

I ended up going with a two-step process. First, I built a blog form, which I merged a day or two ago. You probably didn’t see it because it’s locked behind GitHub authentication — right now, only my account can access it. Not sure if I’ll open it up to others, but figured it doesn’t hurt to have that functionality built in just in case.

Most of the issues I ran into were actually around how AI was interpreting my prompts. Part of the goal with this blog project is to get better at writing prompts for AI when generating or improving code — not sure if I mentioned that before. After some back-and-forth battles, I think everything’s finally in order.

I’m submitting this post through the new blog form, and I also had it generate a little helper script (which you can find in the blog’s GitHub repo) to push existing markdown files from the file system into the Prisma database.

Speaking of which — Prisma is really cool. I love how you can browse the schema and tables right from VS Code, or spin up a local dashboard in the browser to view everything. That came in super handy while testing things out. I created a bunch of test posts during this, and obviously didn’t want them showing up, so I just deleted them.

Actually — quick thought: I should probably add a “hidden” tag or flag for posts so I can keep creating test entries without them being publicly visible. Note to future me!

Anyway, it’s 6:55 AM now and I start work in five minutes. Probably time for a second coffee. I’ll hit publish on this as soon as voice dictation wraps up.

Later days!

More posts

Back at It

Back at It

Was on Vacation for a few days...