Hacker News new | ask | show | jobs
by jimnotgym 1656 days ago
I was checking out Express...how do I get user logins, oh just npm in 50 other projects, adding 50000 dependencies. Back to Django then!
2 comments

The difference between Django and Express.js is that one is a fully-fledged web application framework, while the other is a micro framework that just gives you a simple request -> response abstraction over `http.createServer`.

I find Flask is more comparable to Express.js in that regard. Need auth? You need to:

1. Install a lib for persistence

2. Set up cookie sessions, or install another lib for JWT

3. Set up auth middleware

4. Prepare login/register/forgot pass views and flows

which are almost the same steps you need to take in Express.js.

I guess my surprise came from asking around about what framework to use and being told it was Express. I guess it might be 'Sails', but it's been a week or two so that is probably obsolete now.
Haha, that's exactly what I'm dealing with right now on the project I'm working. Add on top of that Firebase Cloud Functions. I really miss Rails.