This guide outlines the necessary steps to set up and use the Database Sync tool. Please ensure you follow all steps in the order presented for a successful setup.
Before proceeding with the installation, ensure the following prerequisites are met:
- Docker: Version 18.09 or higher. Install Docker
- Python: Version 3.9 or higher. Install Python
- PDM: Version 2.11.2 or higher. Install PDM
- pg_dump: Version 15. Install pg_dump
- psycopg2: Version 2.9.9. Install psycopg
Use the following command to clone the database-sync repository from GitLab:
git clone [email protected]:fnk0c/database-sync.git
Navigate to the cloned repository's directory and run the following command to install the necessary dependencies:
pdm install
In the root directory of your project, create a .env file. This file will store your environment variables.
Start the application by running:
pdm start
By following these steps, you should have the Database Sync application up and running on your system.