Object-Relational Mapping is a technique that lets you query and manipulate data from a database using object-orientated paradigms. In projects, having an ORM in places means you can easily switch out the database for another type and continue to operate the application without any issues (ideally).
Create, Read, Update and Destroy is what all databases will mainly focus on when needed to work alongside side an application.
virtualenv venv
orsource venv/bin/activate
touch app.py
pip3 install flask
pip freeze > requirements.txt
psql -U postgres
# Connect to postgrescreate database 'name_of_db';
# Create database\c name_of_db
# Change into databasecreate user 'main_user' with password '123qwe';
# Create usergrant all privileges on database 'name_of_db' to 'main_user';
# Assign user all privileges on database
pip3 install psycopg2 flask-sqlalchemy
# Packages to ORM flask to postgresql