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.txt
To 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.py
To push the data to MongoDB run
python3 push.py true
This project is licensed under the MIT License - see the LICENSE file for details.