- A Windows, Mac, or Linux computer with Python 3 and Git installed.
- Python 3.6 or higher will be required.
- On Macs, you should already have Python 3 and Git installed.
- On Windows, you may need to install a Windows version of Python, and Git for Windows or a Windows version of Git. Or, you can use Windows Subsystem for Linux.
- Access to a command line, to run Python and Git commands.
- 300-500 MB of free disk space to install GovReady-Q. The installed files will be in the GovReady-Q directory, and you may delete that directory after the test.
- Internet access or alternative resources:
- Access to repositories with appropriate operating systems packages for OS dependencies.
- Access to https://github.com/GovReady/govready-q, https://govready.com/govready-q/download, or another repository with GovReady-Q source code
- Access to https://pypi.org/simple or local mirror of Pypi to install Python dependencies.
- On macOS, installation of some additional dependencies.
(This section has not been completed yet.)
Some additional dependencies are required for Linux Ubuntu.
Do these shell commands to update package list.
# Update package list
apt-get update
apt-get upgrade
Do these shell commands to install the OS dependencies for GovReady-Q.
# Install dependencies
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
unzip git curl jq \
python3 python3-pip \
python3-yaml \
graphviz pandoc \
language-pack-en-base language-pack-en
Some additional dependencies are required for Linux CentOS, RHEL, Fedora.
Do these shell commands to update package list.
# Update package list
dnf update
Do these shell commands to install the OS dependencies for GovReady-Q.
# Install dependencies
dnf install \
python3 python3-devel gcc-c++.x86_64 \
unzip git jq \
graphviz
# for pandoc, enable PowerTools repository
dnf install dnf-plugins-core
dnf config-manager --set-enabled PowerTools
dnf install pandoc
Some additional dependencies are required for macOS.
Setup instructions (may need to be cleaned up and/or fleshed out.)
Do this shell command.
xcode-select --install
(See How to fix the xcrun invalid active developer path error in macOS for more complete instructions.)
If you get an error that command line tools are already installed, just proceed.
Next, install Homebrew, if it is not already installed. This is one way to get started.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
(For more details, see Installation — Homebrew Documentation.)
After Homebrew is installed, do this shell command.
brew install libmagic
If you get a warning that libmagic is already installed, just proceed.
After Homebrew is installed, do this shell command.
brew install postgresql
If you get a warning that postgresql is already installed, just proceed.
[Note, this is needed to resolve this dependency: "Error: pg_config executable not found. pg_config is required to build psycopg2 from source." We should just move this dependency out to a pg_requirements file.]
Start your command line shell.
Go to a directory that you can download GovReady-Q into. If you wish, you can create a new directory, and change directory into it.
Do these shell commands.
git clone https://github.com/GovReady/govready-q.git
cd govready-q
On Windows, do these shell commands.
py -m venv venv
venv\scripts\activate.bat
On Linux and Mac, do these shell commands.
python3 -m venv venv
source venv/bin/activate
You should not see any output. Your prompt may or may not change to include "venv".
Do this shell command for to see all install options.
python3 install.py -h
The script will print command options.
>>>>>>>>>> Welcome to the GovReady-Q Installer <<<<<<<<<
usage: install.py [-h] [--non-interactive] [--timeout TIMEOUT] [--user]
[--verbose]
Quickly set up a new GovReady-Q instance from a freshly-cloned repository.
optional arguments:
-h, --help show this help message and exit
--non-interactive, -n
run without terminal interaction
--timeout TIMEOUT, -t TIMEOUT
seconds to allow external programs to run
(default=120)
--user, -u do pip install with --user
Do this shell command for default install.
python3 install.py
The script will print progress messages. Some of the steps may take a minute or several minutes.
If you are asked a yes/no question, answer as appropriate.
You can hit Control-C at any point to stop the install.
The output will begin something like this:
>>>>>>>>>> Welcome to the GovReady-Q Installer <<<<<<<<<
Testing environment...
Platform is Darwin version 20.3.0 running on x86_64.
====
Python version is 3.8.2.
+ Python version is >= 3.8.
If the install and configuration completes properly, you should see something like this:
***********************************
* GovReady-Q Server configured... *
***********************************
To start GovReady-Q, run:
./manage.py runserver
Log in with the administrator credentials below.
WRITE THIS DOWN:
Created administrator account (username: admin) with password: xxxxxxxxxxxx
When GovReady-Q is running, visit http://localhost:8000/ with your web browser.
Congratulations, you have installed GovReady-Q!