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
Meme marketing for startups 🔥 User Avatar 11 comments 40 open-source gems to replace your SaaS subscriptions 🔥 🚀 User Avatar 1 comment After 19,314 lines of code, i'm shutting down my project User Avatar 1 comment Need feedback for my product. User Avatar 1 comment We are live on Product Hunt User Avatar 1 comment Don't be a Jerk. Use this Tip Calculator. User Avatar 1 comment