# in root
export PYTHONPATH=.
# have a venv in /servers
# pip install requirements in tenant
docker-compose up -d # in /servers
# change line in models/__init__.py postgres_c -> localhost (dont commit this change)
./load_data.sh # load fixtures
python3 tenant/server.py # start server
# place env file in dev-tools
Install docker and docker-compose so you can run the services locally.
Always pull new changes with
git pull
Give the script execution permission initially
chmod +x start-cluster.sh
Start the cluster as follows:
./start-cluster.sh
To kill the cluster:
./kill-cluster.sh
Ensure you run these scripts in the root project directory.
API calls can be made to localhost:5000