Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Updated documentation for OSX to use Homebrew in all instances where it can be used. Also added additional information on how to set up the DB.

Joshua Fialkoffe9afc256db68
diff --git a/docs/gettingstarted/installation-macos.rst b/docs/gettingstarted/installation-macos.rst
index fd4819e7ba..92efd3960b 100644
--- a/docs/gettingstarted/installation-macos.rst
+++ b/docs/gettingstarted/installation-macos.rst
@@ -6,21 +6,6 @@ Prerequisites
Before you are ready to run Saleor you will need additional software installed on your computer.
-
-Node.js
-~~~~~~~
-
-Version 8 or later is required. Download the macOS installer from the `Node.js downloads page <https://nodejs.org/en/download/>`_.
-
-
-PostgreSQL
-~~~~~~~~~~
-
-Saleor needs PostgreSQL version 9.4 or above to work. Get the macOS installer from the `PostgreSQL download page <https://www.postgresql.org/download/macosx/>`_.
-
-Make sure you keep track of the password you set for the administration account during installation.
-
-
Command Line Tools for Xcode
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -42,6 +27,37 @@ Run the following command:
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
+Node.js
+~~~~~~~
+
+Use Homebrew to install the latest version of Node.js:
+
+.. code-block:: console
+
+ $ brew install node
+
+
+PostgreSQL
+~~~~~~~~~~
+
+Use Homebrew to install the latest version of PostgreSQL:
+
+.. code-block:: console
+
+ $ brew install postgresql
+
+Make sure to follow the instructions at the end of Homebrew's output to start your database. Then,
+
+.. code-block:: console
+
+ $ psql postgres
+
+and from the Postgres prompt:
+
+.. code-block:: psql
+
+ # CREATE ROLE saleor WITH LOGIN PASSWORD 'saleor' SUPERUSER;
+ # CREATE DATABASE saleor;
Python 3
~~~~~~~~