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
After many failed product attempts I bootstrapped a file uploading service to 1K MRR in 6 months - AMA! 50 comments Twitter 101 for Indie Hackers 17 comments Do you crosspost your articles on multiple platforms? 11 comments Catching up to my main competitor Veed 10 comments I built an NFT Guide site. Feedback welcome! 7 comments I've teased this project for a while. Initial thoughts on this landing page? 5 comments