Say Hello To shrinkat - A Tiny URL Shortener
James 'Dante' Midzi

James 'Dante' Midzi @psypher1

About: I am passionate about creation, be it code or written. I believe that knowledge should be sharee. If we all gave a little bit of our time to helping the each other, the world would be a better place.

Location:
Tir na Nog
Joined:
Dec 21, 2021

Say Hello To shrinkat - A Tiny URL Shortener

Publish Date: Apr 15 '24
2 0

TLDR
I made a link shortener. The goal was to learn the Pocketbase API and see if it could be viable for some smaller projects I build in the future.

There is really not much to say here. I wanted to implement an entirely localised solution to building something


Technologies I Used

  • SvelteKit (of course)
  • Pocketbase 1
  • TailwindCss

What I Learnt

  • How authentication works with Pocketbase: It's quite different from how something like Supabase handles it.
  • Data modelling: Being sqlite, the way I had to think about data needed a slight shift in mindset.
  • Working with the Pocktebase sqlite database: Working with a barebones database was actually really fun.

Here Are Some Screenshots

Here is the homepage:
home page unauthed

Here is what a logged in user sees:
logged in user


Wrapping Up

This was a fun little thing to build. I learnt quite a bit. There is definitely a place for Pocketbase in my off the cuff build.

My one gripe is deploying this database is not simple, not in the slightest. And no, Docker does not count - I do not use those dark arts.

The code

The code for shrinkat is available on GitHub. Fork it, make it your own, create pull requests...

https://github.com/meerkat-collective/shrinkat


Thank you for reading, let's connect!

Thank you for visiting this little corner of mine. Let's connect on Twitter, Discord and LinkedIn


  1. Testing  

Comments 0 total

    Add comment