Skip to content

Transferring data from the old mysql php website to the new fastAPI MongoDB backend

License

Notifications You must be signed in to change notification settings

alpha-phi-omega-ez/transfer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Transfer

Transffering data from the old MySQL and PHP website to the new MongoDB and FastAPI

Installation

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

Usage

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

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

Transferring data from the old mysql php website to the new fastAPI MongoDB backend

Resources

License

Stars

Watchers

Forks

Languages