3
2 Comments

Flask-Login & PostgreSQL For The Win!

A few months ago, I announced that I will be implementing a proper user login and authentication system for my project, One Word Domains.

To give some context, One Word Domains started out as more of an info product, as it was a database of all the available one-word domains for indie hackers like you and me to find good names for our projects.

However, since I was planning to take this project in the direction of a SaaS, I decided to create a proper login & authentication system so that users can log in to their account and stay logged in instead of having to deal with the rudimentary password-protected-page system that I had from before.

This weekend, I finally took the time to make this happen. I used Flask-login along with PostgreSQL, and the whole process was easier than I'd imagined! This came as a huge relief because I've always been putting this off because I wanted to focus on other features + I thought this was a pain in the ass to set up.

Two takeaways I have from this:

  • Don't be afraid to try something new/learn a new framework just because you think it might be "too difficult". Your ability to learn might surprise you, do not underestimate that.
  • When you do decide to learn something new, start with a blank slate - create a new project in VSCode (or whichever IDE of your choice) and use that to explore the new framework. That way you won't have to worry about the new framework breaking the code of your existing project.

That's it for me this week, thanks for coming to my TED talk! 😅

  1. 2

    Good job! You're right about the second point. I always abide by the rule of a clean slate start when tinkering with something new.

    On a tangential point : The documentation of PostgreSQL is one of the best out there.

    1. 2

      Thanks a lot for your kind words! It's amazing how the clean slate method is so effective - I'm surprised I didn't learn about this sooner.

      Totally agree with you about PostgreSQL's documentation - it's truly phenomenal!

Trending on Indie Hackers
I'll be your customer right away 33 comments How many sales did you make on #GumroadDay? 23 comments Apply here: free 1:1 mentorship with John O'Nolan of Ghost 16 comments Flowrite launch on Product Hunt ✏️ 14 comments From 13 followers to 1000 in less than 2 weeks 😱 5 comments 10 tips for leveling up your Gmail deliverability 5 comments