Building an API for the first time

I've seen many videos where they use MongoDB and Express.js. Do you recommend any better alternative for 2022? What does Theo recommend using? I think he doesn't really stand Express.js if I'm not mistaken. I'm planning on using the t3 stack.
2 Replies
cje
cje2y ago
if it's for the sake of learning how an api works then it doesn't matter too much, the concepts are similar across the board T3 stack is a great place to start if you want an API that is closely tied to a front-end if you want a more "standalone" API, the best choice in JS/TS is Fastify. But in terms of the actual code you write it's very similar to Express. Either way I would recommend starting with SQL instead of Mongo. It's both more popular and more intuitive. But even there I think it doesn't matter too much.
fisiNik
fisiNik2y ago
Thank you for the recommendations! I'll use SQL then.
Want results from more Discord servers?
Add your server