Transffering data from the old MySQL and PHP website to the new MongoDB and FastAPI
Instructions on how to install and set up the project.
# Clone the repository
git clone https://github.com/alpha-phi-omega-ez/transfer.git
# Navigate to the project directory
cd transfer
# Install dependencies
pip3 install -r requirements.txtTo download data first created the json config file dbs.json in this format:
[
{
"user": "user",
"password": "password",
"host": "host",
"database": "database"
},
{
"user": "user",
"password": "password",
"host": "host",
"database": "database"
}
]Then run pull.py to download the data
python3 pull.pyTo push the data to MongoDB run
python3 push.py trueThis project is licensed under the MIT License - see the LICENSE file for details.