PostgreSQL is optional. If you already have a database or prefer another, you can skip this step.
sudo apt update
sudo apt install -y postgresql postgresql-contribbrew update
brew install postgresql- Download the installer from PostgreSQL official site.
- Follow the installation wizard and ensure
pgAdminandpsqlare installed. - Add PostgreSQL to the system PATH if necessary.
If you installed PostgreSQL, start it with the following commands:
sudo systemctl start postgresql
sudo systemctl enable postgresqlbrew services start postgresql- PostgreSQL should start automatically after installation.
- If not, use
pgAdminorServicesto start it manually.
psql --versionIf using PostgreSQL, set up the database with the following:
sudo -u postgres psql
# Inside psql shell
CREATE DATABASE platform_v2;
CREATE USER postgres WITH ENCRYPTED PASSWORD '@9^xwWA';
GRANT ALL PRIVILEGES ON DATABASE platform_v2 TO postgres;
\qBefore running the project, install the required dependencies.
- Create a virtual environment (optional but recommended):
python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows
- Install dependencies from
requirements.txt:pip install -r requirements.txt
PostgreSQL is not required if your project supports other databases (e.g., SQLite, MySQL). Adjust configurations accordingly.
# Setup project
make setup
# Run the project - open two terminals
make worker # In one terminal
make run # In another terminal