Skip to main content

Prerequisites

A Zango Project is your main project under which you can create, develop, and host multiple apps on the same infrastructure. Zango uses django-tenants to isolate applications at the database level.

Think of it as your own private app ecosystem, where each application maintains its isolation while benefiting from shared resources and infrastructure.


Pre-requisites

There are a few requisites that need to be completed before you start creating a Zango project. If you already have them configured, move straight to Creating a Zango Project.

1. PostgreSQL Database Setup

Installing and setting up a PostgreSQL database manually can be overwhelming. If you have Docker installed, you can set it up in just 3 commands:

1. Pull the Postgres Docker Image

docker pull postgres

2. Create a Docker Volume

docker volume create postgres_data

3. Run the Postgres Docker Container

docker run --name postgres_container -e POSTGRES_PASSWORD=mysecretpassword -d -p 5432:5432 -v postgres_data:/var/lib/postgresql/data postgres

After setup, the DB configuration values for .env will look like:

POSTGRES_DB=postgres
POSTGRES_USER=postgres
POSTGRES_PASSWORD=mysecretpassword
POSTGRES_HOST=127.0.0.1
POSTGRES_PORT=5432

2. Redis Setup

Redis is used as a broker by Celery workers.

Run Redis inside a Docker container on port 6379:

docker run --name "name" -d -p 6379:6379 redis

For example:

docker run --name zango_redis -d -p 6379:6379 redis

With PostgreSQL and Redis running, you're ready to create your first Zango project.

Create your Zango project →