Re:React Tutorial: Cloning Yelp
by EdwardDiego on Friday May 27, 2016 @12:08AM
(#11783853)
> Anything you want. Dependency management is taken care of by a simple `pip install flask`, or a requirements.txt.
And what if I want to use multiple versions of a given library for my development? Suddenly I'm learning virtualenv...
Or, if you want to use compiled code and have it be installable on multiple OSs, conda
Yeah so it's really not very simple.
"My tool that I'm intimately familiar with is easier than that tool that I don't know much about"
Well yeah, it's not really an apples to apples comparison. A Yelp clone written in React lacks user auth, persistence, and admin.
Anything you want. Dependency management is taken care of by a simple `pip install flask`, or a requirements.txt. The rest depends on the packages you are using.
> It takes a lot more work to build a yelp clone with python than it does with react.
And why do you think that? I could build a simple and performant Yelp clone with full authentication, admin access, and persistence using only a handful of Python packages:
* Flask: web app microframework
* Jinja2: view templating language
* SQLAlchemy: database ORM
* Psycopg: Postgres database driver
* Flask-SQLAlchemy: Flask plugin for SQLAlchemy
* Flask-Login: authentication, accounts
* Flask-Admin: administration
Of course, just like in the case of React, you'd need HTML + CSS for styling, and JS in case you'd like interactive elements. And finally, to run the app in production, I'd use Nginx + uWSGI.