Published on

Manual install Saleor 3.0 on Window 10

The following instructions assume a 64-bit installation of Windows 10.

Prerequisites

Before you are ready to run Saleor, you will need additional software installed on your computer.

Python

Saleor requires Python 3.9 or later. Go to the Python download page for the installer and installation guide for your operating system.

Make sure Add Python 3.9 to PATH is selected.

Node.js

Saleor requires Node.js 12 or later. Go to the Node.js downloads page for the installer. We recommend using the .msi format.

PostgreSQL + PgAdmin

You will need PostgreSQL version 12.x. Get the Windows installer from the project’s download page.

GTK+

Download and install the 64-bit Windows installer.

Make sure that “Set up PATH environment variable to include GTK+” is selected.

Compilers

Download and install the latest version of the Build Tools for Visual Studio 2017.

Deploy Saleor 3.0

Database

  • Create user a SUPERUSER name: saleor with password: saleor
  • Create database saleor
  • Grant all privileges on database saleor to user saleor

Build and Run

I assume that you installed git and git-cmd on your Window

# Clone source code from github
git clone https://github.com/mirumee/saleor.git
cd saleor
# Checkout branch 3.0
git checkout 3.0
git pull
# Create Python virtual environment
py -3 -m venv pyvenv
# Activate virtual environment
pyvenv\Scripts\activate.bat
# Install requirements_dev
python -m pip install -r requirements_dev.txt
python manage.py migrate
python manage.py collectstatic --noinput
# Create sameple data
python manage.py populatedb --createsuperuser
# Run server in develop mode
python manage.py runserver 0.0.0.0:8000

Now you can access to Graphql playbook at: http://localhost:8000/graphql/

Video tutorial