2021-01-27 17:30:55 -06:00
|
|
|
|
|
|
|
.. highlight:: sh
|
|
|
|
|
|
|
|
Quick Start
|
|
|
|
===========
|
|
|
|
|
|
|
|
This should get you up and running in minutes, with a "bare" Theo setup,
|
2022-01-08 19:52:39 -06:00
|
|
|
meaning no POS integration. (You can add that later if desired.)
|
2021-01-27 17:30:55 -06:00
|
|
|
|
|
|
|
Clone the source code for Theo wherever you like, e.g. ``~/src/theo``::
|
|
|
|
|
|
|
|
mkdir -p ~/src
|
|
|
|
cd ~/src
|
|
|
|
git clone https://kallithea.rattailproject.org/rattail-project/theo
|
|
|
|
|
|
|
|
Your local PostgreSQL service should be available, and user (named ``rattail``)
|
|
|
|
and DB (named ``theo``) created::
|
|
|
|
|
|
|
|
sudo apt install postgresql
|
|
|
|
sudo -u postgres createuser -P rattail
|
|
|
|
sudo -u postgres createdb -O rattail theo
|
|
|
|
|
|
|
|
Make and activate a virtual environment, e.g. ``/srv/envs/theo``::
|
|
|
|
|
|
|
|
mkdir -p /srv/envs
|
2021-12-27 16:14:27 -06:00
|
|
|
python3 -m venv /srv/envs/theo
|
2021-01-27 17:30:55 -06:00
|
|
|
source /srv/envs/theo/bin/activate
|
|
|
|
|
|
|
|
With the virtual environment active, run the development bootstrap script::
|
|
|
|
|
2021-12-27 16:14:27 -06:00
|
|
|
python3 ~/src/theo/dev/bootstrap.py
|