DEV Community

Discussion on: Is R-M-Dj a stack? (React, MongoDB, Django)

Collapse
 
danim47c profile image
Daniel Mateos

First, if you want to use Django or either Express, you should develop an API which you will connect through with React.

Django offers you a big system pre-designed for you to only add another things, I'm talking about authentication.
By the other hand, express, is only a web server framework, you can use middlewares but you would have to make everything by yourself.

As I told you before, you have to consider your use case because it's the main reason that should make you decide between them.

Thread Thread
 
yobretyo profile image
Bret

Ok, I know how to connect React to Django. is MongoDB better than sqlite3?

Thread Thread
 
danim47c profile image
Daniel Mateos

As I told you before, you won't take advantage of most of MongoDB's features because Django's ORM is designed for relational databases. Sqlite is not a production-ready database, is normally used for local dbs.

Thread Thread
 
yobretyo profile image
Bret

Ok, what would you recommend to use together for a retail site, e-commerce or social/blog websites? THANK YOU

Thread Thread
 
danim47c profile image
Daniel Mateos

A relational database such us MySQL or PostgreSQL with express

Thread Thread
 
yobretyo profile image
Bret

Ok, how about with a Django backend? What would you use for middle and FrontEnd? As far as “familiar”, I’m familiar with react and Django. Then I’ve used sqlite3

Thread Thread
 
danim47c profile image
Daniel Mateos

If you want a Django backend you should make an API to interact with, but for sure you can't use Sqlite in production

Thread Thread
 
yobretyo profile image
Bret

Ok, so MySQL? Not MongoDB??