Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Assuming you use Homebrew, run the following:

Code Block
languageDetect language
brew install postgresql

To start PostgreSQL temporarily, you can run brew services run postgresql. For more information on services via Homebrew, run brew services --help.

...

On Debian-based distributions (i.e. Ubuntu or Linux Mint):

Code Block
languageDetect language
apt install libpq-dev python3-dev postgresql postgresql-client

For RHEL-based distributions (i.e. CentOS/Fedora):

Code Block
languageDetect language
dnf install libpq-devel python3-devel postgresql-server

For Arch Linux (Additional configuration may be required after install. Check the Arch Wiki):

Code Block
languageDetect language
pacman -S postgresql-libs postgresql

...

You'll most likely want to create a virtualenv to install things. For example:

Code Block
languageDetect language
python3 -m venv virtualenv

...

Once done, ensure you install requirements:

Code Block
languageDetect language
pip3 install -r requirements.txt
# Useful for reading .flaskenv.
pip3 install python-dotenv

...

Run in development mode, and enjoy!

Code Block
languageDetect language
flask run --host :: --port 80

...