My Incompetent Login Function Implementation

3 min

language: ja bn en es hi pt ru zh-cn zh-tw

Hello, I'm incompetent.

I tried to create a simple login and registration function using Express.js, MongoDB, and JWT.

Initially, I thought about trying it with MariaDB, but I also had a desire to try NoSQL, jumping on the bandwagon, so I gave MongoDB a shot.

Isn't Express.js Unnecessary?

I've been half-thinking this since midway, but I've started to feel that it would be easier to manage everything centrally with FastAPI rather than bothering to build a node with Express.js.

Actually, I'm curious about which one would perform better interactions if you conduct benchmark tests of this kind, but I'll leave that aside for now.

If you consider just creating an API server that runs as long as you have at least Python installed, it's easier if you handle everything through FastAPI, and considering readability (though I don't know if you even need to demand readability for an API server that doesn't need much modification in the first place), I feel like that's fine.

By the way, the reason I used Express was because I read about it on Qiita and just casually decided to try implementing it, but later I started to wonder if there was any fundamental meaning in using it.

Well, I'm Not Really in the Development Field, So I Don't Know Anything...

I truly respect the people in the development field who think about all of this and develop. Of course, it's not something you do alone, so responding flexibly while listening to others' opinions as a result of going through all reviews, and flexibly changing something that already exists from its roots, is a painstaking task.

If I can find the optimal solution for this, I feel like I could make various other things, but I think I'll go to a coffee shop and slowly think about it...

What do you all do? See you again.