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
1 change made Reddit finally work for me. User Avatar 51 comments Ideas are cheap. Execution is violent. User Avatar 18 comments Why I Pivoted from an AI Counseling Service to an AI Girlfriend Chat User Avatar 10 comments Believing in your plan in 100% accuracy is Delusion. User Avatar 5 comments Recommended reading for independent developers: How to get 10K users in one month with $0 User Avatar 2 comments Would you trust ChatGPT with your credit card? 💳 User Avatar 1 comment