Skip to main content

overview

Zango Project is basically our main project on which we can create, develop and host multiple apps under the same Infrastructure. Zango uses django-tenants package 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 needs to be completed before you start creating a zango project. If you already have them configured, consider moving on to the next steps.

1. PostgreSQL Database Setup

To get started, follow these steps to set up a PostgreSQL database:
  1. Install PostgreSQL: If you haven't already, you'll need to install PostgreSQL on your system. You can download the PostgreSQL installer for your platform from the official website: PostgreSQL Downloads
  2. Create a Fresh Database: Once PostgreSQL is installed, open your terminal or a PostgreSQL client. Use the following command to create a new database. Replace your_database_name with the desired name for your project's database:
createdb your_database_name

Ensure that the newly created database is fresh without any existing tables or data. With the PostgreSQL database set up and ready to go, you can proceed with setting up your Zango project, confident that you have the necessary infrastructure in place.

note

Keep in mind that the exact steps for installing PostgreSQL may vary depending on your operating system. Be sure to consult the PostgreSQL documentation or installation guide for your specific platform if you encounter any issues during the installation process.

2. Redis setup

Redis is used as a broker by celery workers. Use the steps below to run redis on your local machine:

Simply run the below command to start 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