- Step 1:
pipenv install --python 3.8 - Step 2:
pipenv shell - Step 3:
pipenv install flask flask-sqlalchemy flask-marshmallow marshmallow-sqlalchemy flask-migrate psycopg2
flask-sqlalchemy is the sql-alchemy with flask bindings. flask-marshmallow is like the Serializer in Django Rest Framework, marshmallow-sqlalchemy is common binding between marshmallow and sqlalchemy (for things like ModelSerializer in Django Rest Framework).flask-migrate is migration tool for Flask based on ALEMBIC.psycopg2-binary is for connecting to postgres db.
Note: If psycopg2 install gives errors use psycopg2-binary. But this is a development only binary. It is not meant for production. For production, you need to compile psycopg2 from source.
See here for installing psycopg2 if you face issues: https://tekshinobi.com/install-psycopg2-on-ubuntu-18-04/
Now create the application file.. traditionally called app.py (or main.py…whatever your taste).touch app.py
Stick in this boilerplate code in app.py.
PyCharm costs around $200 a year. There is a community version of PyCharm which is free to use commercially but it lacks many features (like remote debugging support, advanced Django support and support for JavaScript and CSS) that make PyCharm attractive. On the other hand, VS Code is FOSS (Free and Open-Source Software). This is a no-brainer. Powerful Python IDE with a rich configuration menu All things considered, PyCharm Community Edition is a handy application that can help you create and organize your Python projects in an. There is a number of python IDEs available on the internet, but I would recommend you to kick start your Python journey by installing PyCharm community edition. Because PyCharm community edition comes with a lot of exciting features such as version control, visual debugging, syntax highlighting and many more. In this article, I will guide. PyCharm is an IDE that integrates with IPython Notebook, has an interactive Python console, and supports Anaconda as well as multiple scientific packages. PyCharm supports creating virtual environments for Python with conda. PyCharm is the most popular IDE for Python, and includes great features such as excellent code completion and inspection with advanced debugger and support for web programming and various frameworks. PyCharm is created by Czech company, Jet brains which focusses on creating integrated development environment for various web development.
