5
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! 😅

posted to Icon for group Developers
Developers
on October 19, 2020
  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
Your SaaS Isn’t Failing — Your Copy Is. User Avatar 61 comments Build AI Agents & SaaS Apps Visually : Powered by Simplita ai User Avatar 27 comments The Future of Automation: Why Agents + Frontend Matter More Than Workflow Automation User Avatar 23 comments No Install, No Cost, Just Code User Avatar 20 comments AI Turned My $0 Idea into $10K/Month in 45 Days – No Code, Just This One Trick User Avatar 14 comments 15 Years of Designmodo User Avatar 13 comments